|
We're glad you came by, but you might find what you're looking for elsewhere. TI-Basic Developer is not the site it once was. While its information on commands and other calculator features remains almost second-to-none, its forum, archives, and even hosting service, Wikidot, have been decaying for years. The calculator community would love to see what you're working on, or help you in your next coding adventure, but TI-Basic Developer is no longer the place to do it. Instead, you should head over to Cemetech (primarily American) or TI-Planet (primarily international). Both are active, well-established forums with their own archives, chatrooms, reference material, and abundant coding tools and resources. We'll see you there, we hope. |
Approximates a future value of a given function.
X - Initial X-Value
Y - Initial Y-Value
Str1 - The equation
D - X-value at which the Y-value is approximated
U - X-value approximation
V - Y -value approximation
E, C, H, X, U, Y, Y1, V
TI-83/84/+/SE/CSE/CE
Xeda Elnara, who optimized Myles_Zadok's optimization of the routine linked to below:
The Mathematics Department at the University of Arizona
URL: [http://math.arizona.edu/~krawczyk/Calculator/TI83PLUS/TI83PNEul.html]
Please note that there may be a graphical bug that displays the token -1 as 1.
:"INITIAL-
:Input Ans+"X=",X
:Input Ans+"Y=",Y
:Input "EQN=",Str1
:Str1→Y1
:Input "FINAL-X=",D
:Input "NO. OF ITERATIONS=",E
:Eֿ¹(D-X→H
:For(I,1,E
:ClrHome
:Y+Y1H→Y
:X+H→X
:ClrHome
:Disp "STEP",I,"X=",X,"Y=
:Pause Y
:EndEuler's method is used to predict the value of a function at a higher value than the initial value. The initial x- and y-values are used to find the y- value at the desired x-coordinate of the given function. Multiple iterations are done to reach a better approximation.
Related Routines
.