QB45 Forums
Party like you didn't do in 1999.
Post a reply:
Party like you didn't do in 1999.
Programming Talk - View Post
Anything related to programming under the sun
annonymous
Guest
Guest
Trigonometry in QB
Posted by annonymous, on Aug 28th, 2005
I'm a relative n00b to qb and I'm trying to make a program with which to calculate the necisarry angle for the expulsion of a projectile with a constant initial velocity and user-supplied horizontal distance. Here is the code
CLS
INPUT "What is desired distance "; x
v = 10
t = 0
a1 = (1 / SIN((32.1 * x) / (v ^ 2)))
a2 = a1 / 2
PRINT a2
END
I'd appreciate any help you may offer regarding the proper syntax of the inverse sine. Back to Programming Talk
CLS
INPUT "What is desired distance "; x
v = 10
t = 0
a1 = (1 / SIN((32.1 * x) / (v ^ 2)))
a2 = a1 / 2
PRINT a2
END
I'd appreciate any help you may offer regarding the proper syntax of the inverse sine. Back to Programming Talk
Replies:
There are no replies to this message
Post a reply: