Qbasicnews.com

Full Version: Inverse tan
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there anyway to use the inverse tan or tan-1 function in qb. If not, how can I work out the size of an angle, when I only know two other sides.
[Image: angle.gif]


tan(theta) = a/b = theta in radians (aproximately)

Doesn't apply on sin or cos functions. I mean you need to have small angles if you want to aproximate the angle on that way.
Use the ATN function, it is the function that calculates the arc tangens.

For ARCCOS and ARCSIN, they can be rewritten into LN, e powers and LOGs.
In case you need other trig functions try this:
http://support.microsoft.com/support/kb/...8/2/49.asp
Thanks guys. The site that DJ dennie posted was really helpfull.