ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer

Slides:



Advertisements
Similar presentations
ENGR-45_Prob_3-5_3-12_2-16_Lab.ppt 1 Bruce Mayer, PE Engineering-45: Materials of Engineering Bruce Mayer, PE Licensed Electrical.
Advertisements

259 Lecture 17 Working with Data in MATLAB. Overview  In this lecture, we’ll look at some commands that are useful for working with data!  fzero  sum,
ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_TYU_chp02.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
E ENGR-25_Chp2_AirCraft_Separation_.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Chp3 Tutorial: Prob 3.14 Solution
ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Solving Linear Equations  Many applications require solving systems of linear equations.  One method for solving linear equations is to write a matrix.
ENGR-43_Lec-06c_2ndOrder-Filter_MATLAB-BodePlots.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer,
ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods P1-26 Law of CoSines  Given Irregular Quadrilateral  By Law of.
MTH16_Lec-19_sec_10-3_Taylor_Series.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
Lab5 (Signal & System) Instructor: Anan Osothsilp Date: 20 Feb 07 Due Date 09 March 07.
1.3 ARRAYS, FILES, AND PLOTS + FOURIER SERIES BY MR. Q.
ENGR-25_Lec-29_MS_Excel-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Lec-25_SimuLink-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Chp6_Tutorial_PolyFit_J_S_rsq.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Dr. Jie Zou PHY Welcome to PHY 3320 Computational Methods in Physics and Engineering.
Law of Sines and Law of Cosines Examples / Practice.
MTH15_Lec-02_Fa13_sec_1-2_Fcn_Graphs.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
MTH16_Lec-14_sec_10-1_Infinite_Series.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Licensed Electrical & Mechanical Engineer
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MATLAB Tutorials Session I Introduction to MATLAB Rajeev Madazhy Dept of Mechanical Engineering LSU.
MTH16_Lec-09_sec_7-6_Double_Integrals.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
ENGR-36_Lec-22_Wedge-n-Belt_Friction.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed.
MTH55_Lec-46_sec_7-6b_2Var_Radical_Eqns.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
Matlab Basics Tutorial. Vectors Let's start off by creating something simple, like a vector. Enter each element of the vector (separated by a space) between.
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Programming-3.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_EXCEL_Integration_Tutorial-Example.pptx 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
ENGR-43_Lec-04b_2nd_Order_Ckts.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Registered.
Recap Sum and Product Functions Matrix Size Function Variance and Standard Deviation Random Numbers Complex Numbers.
MTH55_Lec-26_sec_5-7_PolyNom_Eqns-n-Apps.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Linear_Regression_Tutorial.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-44_Lec-03-1a_Nodal_Analysis.ppt 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Licensed Electrical.
ENGR-36_Lab-24_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_Prob_6-12_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-25_Prob_10-25_Catenary_Solution.ppt.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
ENGR-25_Prob_2-24_Solution.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-25_Prob_6-12_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
7.7 Law of Cosines. Use the Law of Cosines to solve triangles and problems.
CS 121 – Quiz 3 Question 5. This question is just a different form of question four you solved at quiz 2. a) We need to use law of cosines to solve the.
ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Chapter 4 Analytic Trigonometry Section 4.5 More Trigonometric Equations.
ENGR-36_Prob_4_5_32_ACAD_Solution.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed.
1 Lecture 8 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
ENGR36_H13_Tutorial_Catenary_Cables.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-36_Lab-06_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Vector Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH15_Lec-17a_sec_3-5_Round_End_Fence_Enclosure.pptx 1 Bruce Mayer, PE MTH15: Applied Calculus I Bruce Mayer, PE Licensed Electrical.
© ENGR-43_Prob_14-32_OpAmp_OutPut_Current.pptx 1 Bruce Mayer, PE Engineering-43 Electrical Circuits & Devices Bruce Mayer, PE.
ENGR-43_Lec-04b_2nd_Order_Ckts.pptx 1 Bruce Mayer, PE Engineering-43: Engineering Circuit Analysis Bruce Mayer, PE Registered.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Linear_Regression_Tutorial.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
MTE2 Review 2nd Order Transient Ckt
Catenary Tutorial Part-2
Licensed Electrical & Mechanical Engineer
Registered Electrical & Mechanical Engineer
Step-by-Step Pulse Response
Lab-23 Chp10 Beam VM Diagrams By Calculus
Chp3 Nodal Analysis & MATLAB
Registered Electrical & Mechanical Engineer
Chp4, Lab-03 Example Problems 4.5.[60,54]
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Prob 9-28 Solution Tutorial
Presentation transcript:

ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer Engineering 25 Problems 1.[23, 26] Solutions

ENGR-25_Prob_9_3_Solution.ppt 2 Bruce Mayer, PE Engineering-25: Computational Methods P1.23 FT approximation  Consider the Step Function  The Fourier Transform for the above Function  Taking the First FOUR Terms of the Infinite Sum

ENGR-25_Prob_9_3_Solution.ppt 3 Bruce Mayer, PE Engineering-25: Computational Methods P.1-23 FT m-file & plot % Bruce Mayer, PE % EGNR25 * 23Jun11 % file = P1_23_fft_1106.m % delx = 1e-6 % for small increment on either side of ZERO % % Make STEP-function plotting vector x1 = [-pi,0-delx, 0+delx, pi] f1 = [-1,-1,1,1] % % Make FFT plotting vectors x2 =-pi:0.01:pi; % Row Vector Containing 629 elements % Calc the value of f at all 629 points using element- by-element addition f2 = (4/pi)*(sin(x2)/1 + sin(3*x2)/3 + sin(5*x2)/5 + sin(7*x2)/7); % % Plot Both with a grid plot(x1,f1, x2,f2, 'linewidth',3), grid

ENGR-25_Prob_9_3_Solution.ppt 4 Bruce Mayer, PE Engineering-25: Computational Methods P1.23 MATLAB m-file % Bruce Mayer, PE % EGNR25 * 23Jan11 % file = P1_23_fft_1201.m % % delx = 1e-6 % for small increment on either side of ZERO % % Make STEP-function plotting vector x1 = [-pi,0-delx, 0+delx, pi] f1 = [-1,-1,1,1] % % Make FFT plotting vectors x2 =-pi:0.01:pi; f2 = (4/pi)*(sin(x2)/1 + sin(3*x2)/3 + sin(5*x2)/5 + sin(7*x2)/7); % % Plot Both with a grid plot(x1,f1, x2,f2, 'linewidth',3), grid, title('Vectorized Solution') % disp('Showing NONLoop plot; hit ANY KEY to continue') pause % % % try using FOR Loop and element-by-element addition to calc components of the FT fTot = zeros(1, length(x2)); % initialize total as array of zeros same length of x2 for k = 1:2:7 fc = sin(k*x2)/k; fTot = + fc; % element-by-element addition end % % Now mult fTot Vector by 4/pi to create f3 f3= (4/pi)*fTot; % % use same x2 as before to plot f3 plot(x1,f1, x2,f3, 'linewidth',3), grid, title('Loop and zeros Solution')

ENGR-25_Prob_9_3_Solution.ppt 5 Bruce Mayer, PE Engineering-25: Computational Methods P1.23 MATLAB Plots

ENGR-25_Prob_9_3_Solution.ppt 6 Bruce Mayer, PE Engineering-25: Computational Methods P1-26 Law of CoSines  Given Irregular Quadrilateral  By Law of CoSines

ENGR-25_Prob_9_3_Solution.ppt 7 Bruce Mayer, PE Engineering-25: Computational Methods P1-26 Law of CoSines  Given Quantities   Find c 2 when Instructor to WhtBd to Build Quadratic Eqn in c 2 b 1 = 180 mc 1 = 115 mA 1 = 120° b 2 = 165 mA 2 = 100°

ENGR-25_Prob_9_3_Solution.ppt 8 Bruce Mayer, PE Engineering-25: Computational Methods P1-26 Law of CoSines  Build Quadratic Eqn in c 2 Instructor to Write m-file from Scratch (start w/ blank m-file)

ENGR-25_Prob_9_3_Solution.ppt 9 Bruce Mayer, PE Engineering-25: Computational Methods P1-26 mFile & Results % Bruce Mayer, PE % EGNR25 * 23Jun11 % file = P1_26_LawOfCos_1106.m % % Set Known ParaMeters b1 = 180; b2 = 165; c1 = 115; % all in meters A1 = 120; A2 = 100; % all in Degrees % % Calc the constant a^2 asq = b1^2 + c1^2 -2*b1*c1*cosd(A1) % note use of cosd % % Make Quadratic PolyNomial c2Poly = [1, -2*b2*cosd(A2), (b2^2 - asq)] % % Find roots of PolyNomial c2roots = roots(c2Poly) % % NOTE: since c2 is a DISTANCE it MUST be POSITIVE asq = c2Poly = 1.0e+004 * c2roots = ANSWER

ENGR-25_Prob_9_3_Solution.ppt 10 Bruce Mayer, PE Engineering-25: Computational Methods Another Solution % Bruce Mayer, PE % 20Aug12 * ENGR25 % file P1_26_LawOfCos_Alternative_1208.m % % Side Lengths in meters b1 = 180, b2 = 165, c1 = 115 % commas do NOT suppress ReadBack % % Angles in Degrees A1 = 120; A2 = 100; % semicolons DO suppress ReadBack % % calc parameter "asqd" asqd = b1^2 + c1^2 - 2*b1*c1*cosd(A1) % note use of cosd; not cos. cos operates on radians % c2QuadCoeff = [1 -2*b2*cosd(A2) b2^2-asqd] % find Roots of Quadratic c2 = roots(c2QuadCoeff) % Note that c2 is a DISTANCE and hence MUST be POSITIVE