[Example | Determine the altitude at one-second intervals of a ball thrown
L into the air at an initial velocity of Vm/sec and an angle of S°.
The formula is expressed as: h = Vsin0t-^gt2, with g = 9.8, with
the effects of air resistance being disregarded.
program
Deg, 0, — T, ?, — V, ?, - , S,
Lbl, 1, Isz, T, V, x, sin, S, x , T, —,
9, •, 8 , x, T, x2, -r-, 2, A, Goto, 1 38 steps
In this program the unit of angular measurement is set and memory T is first
initialized (cleared). Then the initial velocity and angle are input into memories
V and S respectively.
Lbl 1 is used at the beginning of the repeat calculations. The numeric value stored
in memory T is counted up (increased by 1) by Isz T. In this case, the Isz command
is used only for the purpose of increasing the value stored in memory T, and the
subsequent jump does not depend upon any comparison or decision. The Isz com
mand can also be used in the same manner as seen with the Dsz command for
jumps that require decisions, but, as can be seen here, it can also be used to
simply increase values. If, in place of the Isz command, another method such as
“T+1 ->T” is used, five steps are required instead of the two for the (Isz T) method
shown here. Such commands are convenient ways of conserving memory space.
Each time memory T is increased, calculation is performed according to the for
mula, and the altitude is displayed. It should be noted that this program is end
less, so when the required value is obtained, B (T ) are pressed to terminate the
program.
- 1 2 5 -