Ca756d – Sentry Industries CA756 User Manual

Page 72

Advertising
background image

111

110

<Summary>

Determine the altitude at one-second intervals

of a ball thrown into the air at an initial
velocity of Vm/ sec and an angle of S °.
The formula is expressed as: h=Vsin t-1/2gt

2

,

with g=9.8, with the effects of air resistance
being disregarded.

Program

Deg , : ,0, , T ,: , ? , ,V,: ,?, , S, :,
Lbl , 1, : ,lsz , T, : ,V ,

x

,sin , S,

x

,

T

,-,

9,•,8,

x

,T,

x

2

,

÷, 2, ,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 command 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 formula, and the altitude is displayed. It should be
noted that this program is endless, so when the required

value is obtained,

are pressed to terminate the

program.

Advertising