Using Microsoft Ecel Built-in Functions and Matri Operations EGN 006 Introduction to the Engineering Profession
Ecel Embedded Functions Ecel has a wide variety of Built-in Functions: Mathematical Financial Statistical Logical Database Conversion User-defined *** EGN 006 Introduction to the Engineering Profession
EGN 006 Introduction to the Engineering Profession Ecel Embedded Functions These functions allow us to : Perform more comple operations Combine data for parametric calculations Manipulate the contents of the datasheet Search for values in the datasheet
Ecel Embedded Functions t V Eample: Open Ecel and start from an empty datasheet and enter the following data: 0 0.5.5.5.5.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 0 EGN 006 Introduction to the Engineering Profession
EGN 006 Introduction to the Engineering Profession Ecel Embedded Functions Enter the following formula for an oscillating particle position at any time t with a frequency ω=0.75 ( t ) = sin( ω t ) By clicking in the f button or entering: =sin(0.75*a) on cell B t V 0 0 0.5 0.667 0.6869.5 0.9068 0.99795.5 0.95086 0.77807.5 0.99 0..5-0.9 5-0.5756 5.5-0.89 6-0.9775 6.5-0.9868 7-0.8589 7.5-0.668 8-0.79 8.5 0.09686 9 0.500 9.5 0.7585 0 0.98
Ecel Embedded Functions Plot the position (t) as:.5 0.5 0 t 0.5.5.5.5.5 5.5 6.5 7.5 8.5 9.5-0.5 - -.5 EGN 006 Introduction to the Engineering Profession
EGN 006 Introduction to the Engineering Profession Ecel Embedded Functions Enter the following formula for the particle velocity at any time t with a frequency ω=0.75 V ( t ) = ω cos( ω t ) By clicking in the f button or entering: =0.75*cos(0.75*A) on cell C t V 0 0 0.75 0.5 0.667 0.69788 0.6869 0.58767.5 0.9068 0.8 0.99795 0.0505.5 0.95086-0.65 0.77807-0.7.5 0.99-0.65 0. -0.79.5-0.9-0.7966 5-0.5756-0.65 5.5-0.89-0.56 6-0.9775-0.58 6.5-0.9868 0. 7-0.8589 0.806 7.5-0.668 0.598 8-0.79 0.708 8.5 0.09686 0.768 9 0.500 0.669755 9.5 0.7585 0.9958 0 0.98 0.59976
Ecel Embedded Functions Plot the velocity V(t) as: V 0.8 0.6 0. 0. t 0.5.5.5.5.5 5.5 6.5 7.5 8.5 9.5 0-0. -0. -0.6-0.8 - V EGN 006 Introduction to the Engineering Profession
EGN 006 Introduction to the Engineering Profession Ecel Embedded Functions We can also perform multi-dimensional calculations: Assume that the temperature of the surface of an electronic board is given by the function: T (, y) = e 0.( + y) [ sin( ) cos( y ) ]
Ecel Embedded Functions Enter the following data for the position (,y): y 0 0.5 0.5 0.75.5.5.75.5.5.75 0 0.5 0.5 0.75.5.5.75.5.5.75 EGN 006 Introduction to the Engineering Profession
EGN 006 Introduction to the Engineering Profession Ecel Embedded Functions Use the formula for the surface temperature on cell B as: = EXP(0.*(B$+$A))*SIN(B$-)*COS($A-) y 0 0.5 0.5 0.75.5.5.75.5.5.75 0-0.5-0.8-0.7-0. 0 0.5 0.0 0.9 0.555 0.6 0.69 0.7 0.66 0.5-0.6-0.5-0.8-0. 0 0. 0.8 0.609 0.77 0.89 0.96 0.97 0.9 0.5-0.78-0.6-0.6-0.5 0 0.59 0.5 0.79 0.98.096.8.95. 0.75-0.88-0.7-0.5-0.8 0 0.9 0.58 0.88.07..8.5.8-0.9-0.77-0.56-0.9 0 0. 0.66 0.897.6..6..57.5-0.9-0.77-0.55-0.9 0 0.08 0.6 0.89.8.05.06..8.5-0.86-0.7-0.5-0.7 0 0.86 0.568 0.88.08..06..5.75-0.7-0.6-0. -0. 0 0. 0.86 0.708 0.896.06.6.9.07-0.56-0.6-0. -0.8 0 0.85 0.68 0.56 0.678 0.78 0.85 0.855 0.8.5-0. -0.8-0. -0. 0 0. 0. 0. 0.06 0.69 0.506 0.5 0.85.5-0.08-0.06-0.05-0.0 0 0.05 0.05 0.07 0.09 0.08 0.6 0.8 0..75 0.97 0.6 0.8 0.06 0-0.07-0. -0.9-0. -0.8-0. -0. -0.9 0.7 0.9 0.8 0.5 0-0.6-0. -0.6-0.58-0.67-0.7-0.7-0.69
Ecel Embedded Functions Use a surface graph to plot T(,y) as:.5 0.5 0-0.5 -.5.5 0 -.5 0.5-0-0.5-0.5-0 ---0.5 EGN 006 Introduction to the Engineering Profession 0 0.75.5.5
EGN 006 Introduction to the Engineering Profession Matri Operations A Matri is a collection of independent values ordered in a row-column format: 0 0 (5) The above Matri is said to be (5) or by 5 because it has rows and 5 columns. The first number is the first dimension or the number of rows. The second number is the second dimension or the number of columns.
EGN 006 Introduction to the Engineering Profession Matri Operations When a Matri has just one () column (N) is said to be a vector. The following is a () vector: 0 ( ) Matrices are very useful in the solution of systems of multiple linear equations arising from many problems: Electricity, Heat Transfer, Fluid Mechanics, Optics, etc.
Matri Operations The fundamental Matri operations are:. Addition and Subtraction. Multiplication by a Scalar. Transpose. Multiplication of Two Matrices 5. Determinant 6. Inversion EGN 006 Introduction to the Engineering Profession
EGN 006 Introduction to the Engineering Profession Matri Operations. Addition and Subtraction: To add or subtract two matrices they both must have the same eact dimensions. The result contains the addition or subtraction of corresponding elements. In Ecel, simply enter the matrices, add or subtract the first element of each matri into a new cell, and copy the cell to form the new matri: [A] () - - - [C]=[A]+[B] - 6 () - 6 5 [B] - 5 0 () - -
EGN 006 Introduction to the Engineering Profession Matri Operations. Multiplication by a Scalar: The resulting matri of a scalar-matri multiplication has the same dimensions as the original matri with all its elements multiplied by the scalar. In Ecel, simply enter the Matri and the Scalar, multiply the first element of the matri times the scalar (with absolute address) into a new cell, and copy the cell to form the new matri: Scalar 5 [A] - [C]=Scalar [A] -0 0 5 () - () 5-5 0-0 -0 0 5 0 5 0 0
EGN 006 Introduction to the Engineering Profession Matri Operations. Transpose: The transpose of a matri positions the rows on the column locations and the columns on the row locations. The result is a Matri with the opposite dimensions as the original one ( 5 5). In Ecel, use the built- in-function =transpose(). Remember to use [ctrlshift-enter] when entering the results because the =transpose() function will occupy multiple cells: [A] - 5 transpose[a] 0 (5) - (5) - - - 5-0 0 0 - - - -
EGN 006 Introduction to the Engineering Profession Matri Operations. Multiplication of two Matrices: To multiply two matrices the number of columns of the first matri must equal the number of rows of the second. The resulting matri will have as many rows as the first and as many columns as the second. In Ecel, use the built-in-function =mmult(,). Remember to use [ctrl-shift-enter] when entering the results because the =mmult(,) function will occupy multiple cells: [A] - () [C]=[A][B] 8 6 6 6 [B] - - () 0 () 0-5 9 -
Matri Operations Another Multiplication eample: [A] - - 0 [c]=[a][b] 0 (55) - 0 (5) 0 - - 8 0-5 [b] (5) 0 EGN 006 Introduction to the Engineering Profession
EGN 006 Introduction to the Engineering Profession Matri Operations 5. Determinant: Only the determinants of square matrices can be obtained. The determinant of a singular matri is zero (0). In Ecel, use the builtin-function =mdeterm(). [A] - - () - - 0 determinant[ A] -0
EGN 006 Introduction to the Engineering Profession Matri Operations 6. Inversion: Only the inverse of square matrices can be obtained. The inverse of a matri has the same dimensions as the original one. In Ecel, use the built-in-function =minverse(). Remember to use [ctrl-shift-enter] when entering the results because the =minverse() function will occupy multiple cells: [A] - - 0 inverse[a] 0.9 0. 0.06-0.0 0.0 (55) - 0 (55) 0.. 0. 0. -0.6-0.0 0.90 0.05 0.0-0.55 - -0. -0.5 0.06 0.09 0. 0-0.08.6-0.08 0.8-0.5
Introduction to the Engineering Profession Solution of systems of multiple linear equations: If a system of linear equations is well-posed (same number of equations as unknowns and no equation is the combination of one or more of the others) a Matri-Vector Analogy can be found to facilitate the solution of the system. Given the Matri Operations EGN 006 Introduction to the Engineering Profession facilitate the solution of the system. Given the following system of five (5) equations and five (5) unknowns: 5 5 5 5 = + + = + + + = + = + = + +
Introduction to the Engineering Profession Where the unknowns 5 can represent electric intensity, energy, temperature, flow velocities, etc., depending on the application. An analog Matri-Vector system can be derived as: Matri Operations EGN 006 Introduction to the Engineering Profession = 0 5 Or simplified as: [ ] } { } { b A =
EGN 006 Introduction to the Engineering Profession Matri Operations The solution of the system is given by: In Ecel: [ A] { b} { } = [A] - - {b} (55) - - - - (5) - - - - - - - 0 inverse[a] 0. 0. 0.0 0. 0.0 {}=inv[a]{b}.8 (55) -0. 0.6-0.08 0. 0.06 (5) -0.0-0.06-0. -0.06-0. 0.8-0.5 0.0 0.05-0. 0. -0. -0. -0. -0.0 0.06-0.06 0.09 -.9