Do I not rember my trigonometry or is there no code for ATAN ?
Printable View
Do I not rember my trigonometry or is there no code for ATAN ?
VB 6 have Math.Atn and .Net has Math.Atan method.
Or are you looking for pure Trig based functions to calculate Tan-1. Take a look here.
The theory in the link looks kinda too much!!
Could have sorted this out. Will check tomorrow. Why don't they have math.ASin, Math.ACos....etc
Don't understand, most of those functions work on there own without math.??
I don't know, maybe to save code ;) ? At any rate you can derive ASIN and ACOS from ATAN. For example, if you want to calculate a knowing that a=ASIN(x), thenQuote:
Originally Posted by sgrya1
tan(a) = sin(a) / cos(a) = sin(a) / Sqrt(1 - sin2(a)) = x / Sqrt(1 - x2)
so that
a = ATAN (x / Sqrt(1 - x2))
And for ACOS it's analogous.