How do I get arctan MATH function in iphone SDK?
Asked
Active
Viewed 2.0k times
2 Answers
41
The function you are looking for is atan(double)

Jilouc
- 12,684
- 4
- 46
- 43
-
How can i use arccos MATH function ?? – Devang Mar 17 '11 at 14:04
-
2@Devang: `acos()` unsurprisingly. http://developer.apple.com/library/mac/#documentation/darwin/reference/manpages/man3/acos.3.html – JeremyP Mar 17 '11 at 14:07
-
This man page might be of help http://developer.apple.com/library/mac/#documentation/darwin/reference/manpages/man3/math.3.html#//apple_ref/doc/man/3/math – JeremyP Mar 17 '11 at 14:08
-
Does it return the value in radians or degrees? – Blip Mar 16 '15 at 01:01
-
2Its in radians (*180/π) for degrees – Magster Jul 21 '15 at 05:23
4
Use the "2nd"-function under the "("-key, top left with the iphone in horizontal position. The tan key will change to tan-1, i.e. arctan.

MattiLi
- 41
- 1