I need help writing a calculator TI-84 code for 4th order Runge Kutta Method. WI
ID: 3848665 • Letter: I
Question
I need help writing a calculator TI-84 code for 4th order Runge Kutta Method. WILL RATE!
I wrote code for Improved Euler Method, but having trouble writing Runge Kutta. Please allow code to be similar to the code I wrote. Thank you.
Improved Euler Method
:ClrHome
:Disp "X0"
:Input X
:Disp "Y0"
:Input Y
:Disp "H"
:Input H
:1->N
:Lbl A
:Y->D
:Y1->B
:Y+H*Y1->Y
:X+H->X
:Y1->C
:D+H[B+C]/2->Y
:ClrHome
:Output(1,1,"X =")
:Output(1,2,N)
:Output(1,5,X)
:Output(2,1,"Y =")
:Output(2,2,N)
:Output(2,5,Y)
:Pause
:1+N->N
:Goto A
Explanation / Answer
:ClrHome
:Disp ""
:Disp "X0, Y0=?"
:Input U
:Input V
:Lbl 1
:ClrHome
:Prompt H,N
:Lbl 2
:For(J, 1,N,1)
:prgmRKSBR
:END
:ClrHome
:Disp ""
:Disp "X="
:Disp U
:Disp "Y="
:Disp V
:Disp " "
:Input "CONTINUE?", Q
:If Q=1
:Goto 2
:Input "NEW H AND N?", Q
:If Q=1
:Goto 1
The RKSBR PROGRAM
:U->X
:V->Y
:HY1->K
:K->S
:U+H/2->X
:For(F,1,2,1)
:V+K/2->Y
:HY1->K
:S+2K->S
:END
:U+H->X
:V+K->Y
:V+(S+HY1) /6->V
:X->U
:RETURN
In this program also continue? Statement asks you whether you want the program to calculate the next step or not. Like before 1=yes and 0=no