Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago