1 / 2

Numerical Methods

Hi, My name is Alice. I am associated with Matlab Assignment Experts for the past 7 years and have been assisting students with their Matlab Assignments.<br>I have a Masters's in Mechanical Engineering from Stanford University.<br>For hiring me for assignment writing visit: https://www.matlabassignmentexperts.com/ or you can mail us info@matlabassignmentexperts.com

Download Presentation

Numerical Methods

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NumericalMethods QUESTIONS AND ANSWERS Suppose an approximation to the irrational number ℼ is given as 3.14. Calculate the following by using short engineering number format representation in MATLAB and write your answers below. a. The true error, Answer= 1.5927×10-3 b. The true percent relative error. Answer= 50.6957×10-3 % 2. Let’s remember from Calculus. Instead of infinite sum, suppose we make nth degree approximation as For x=0.3 and n=3, calculate the following by giving your answers with 4 significant figures. a. the approximation value, Answer= 1.349 (chopping) or 1.350 (rounding) b. the percent relative approximation error. Answer = 0.02658% (chopping) 0.02659% (rounding) 3. Calculate the root of the function f (t) = sinh ( t+et ) in the interval t €[-1,1] with 3 significant figures. Answer = −0.567 4. Test the following pseudocode with the initial values a=0, b=1, N=5. Answer= 49 www.matlabassignmentexperts.com info@matlabassignmentexperts.com +1 (315) 557-6473

  2. FUNCTION Result(a,b,N) iter=0 DO a=a+b b=b+2 sum=a+b iter=iter+1 IF iter>N EXIT ENDIF ENDDO Result=sum END Result 5. Calculate the following by using short number format representation in MATLAB and write your answers below. sin(34.35°) Answer = 0.5642 2-10e (-5/2) Answer= 1.1792 Answer = 2.7317 d. Find the polynomial which has the roots 2, 1+3j , 1-3j Answer = p(x) = x3 – 4x2 + 14x – 20 www.matlabassignmentexperts.com info@matlabassignmentexperts.com +1 (315) 557-6473

More Related