Question: 4.12 Answer the following questions about this program: 1function problem4_12 2y=1; t=0; dt = 1e-4; for i = 1:8e3 t=t+dt; b getb ( y, a,
4.12 Answer the following questions about this program: 1function problem4_12 2y=1; t=0; dt = 1e-4; for i = 1:8e3 t=t+dt; b getb ( y, a, t , dt); = while abs (b) > le-4 c getc ( y, t , dt ) ; y = y -b/c; b getb ( y, a, t , dt ); k=k+1; ifk> 20 break 16 end end 19 end function b= getb(y,a,t,dt) 21 b=ya- - a dt*(y"2 + cos(y*t)) 22 23 24 function c getc (y,t,dt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
