home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR8
/
DOSPEL37.ZIP
/
DO-98.ZIP
/
MOTION.CDO
< prev
next >
Wrap
Text File
|
1991-12-31
|
359b
|
26 lines
"
"DOCALC2 example: Ballistics or projectile motion.
V0 := 100
Angle:= 35
Vx0 := V0*cos(angle)
Vy0 := V0*sin(angle)
Vy := Vy0-9.81*time
"Position (X,Y) , time and speed (V) after landing:
X := Vx0*time
Y := Vy0*time-9.81/2*sqr(time)
V := sqrt(sqr(Vx0)+abs(sqr(Vy)))
Time:= 2*(Vy0/9.81)
X
int(Y)
V
Time