Question: MODELING & NUMERICAL SOLUTIONS 2 MS 3 AUTO TECH ASSIGNMENT 2 Roots of Non - linear Equations The upward velocity of a rocket can be

MODELING & NUMERICAL SOLUTIONS 2MS3 AUTO TECH ASSIGNMENT 2 Roots of Non-linear Equations
The upward velocity of a rocket can be computed by the following formula: v=u*ln(m0m0-qt)-gt, where v is the upward velocity, u is the velocity at which the fuel is expelled relative to the rocket, m0 is the initial mass of the rocket at time t=0,q is the fuel consumption rate and g is the downwards acceleration due to gravity. If u=2700ms,m0=250,000Kg,q=3680kgs, and g=9.81ms2, compute the time at which v=2000ms. Use single (float) precision for all your manual calculations. Single precision i.e. with 6 significant digits. For example: -2345.01,0.220344,-0.000112233,10233400
a) Bisection method (manual calculations, starting points 10 and 50, three iterations, single precision)
b) False-position method (manual calc., starting points 10 and 50, three iterations, single precision)
c) Secant method (manual calculations, starting points 50 and 40, three iterations, single precision)
d) Newton-Raphson (C++ program, use pseudo-code, single precision float, eps =0.0001, delta =0.01)
e) Error analysis (compare a,b,c with d respectively, express errors in percentage)
procedure Newton(f,f',x,nmax,,)
integer n,nmax; , real x,fx,fp,,
external function f,f'
fxlarrf(x)
output 0,x,fx
for n=1 to nmax do
fplarrf'(x)
if |fp| then
output "small derivative"
return
end if
dlarrfxfp
xlarrx-d
fxlarrf(x)
output n,x,fx
if |d| then
output "convergence"
return
end if
end for
end procedure Newton
Newton Raphson p106, p92.
Legend:
f is the input function being solved
f' derivative of f, obtained through analytical derivation
x is the starting point of the algorithm
nmax is the max number of iterations after which the algorithm is aborted
is desired precision
is a limit used to indicate when the derivative becomes almost horizontal.
 MODELING & NUMERICAL SOLUTIONS 2MS3 AUTO TECH ASSIGNMENT 2 Roots of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!