PDA

View Full Version : Stupid C question...



MrShoe
10-01-2001, 08:26 PM
What is the inverse cosine function in the math library for C/C++?? i looked in the header and all it had was cos, cosh, and acos... but none of them seem to be the inverse function.

ffish
10-01-2001, 09:29 PM
acos == arccos. I guess the developers of the stdlib were too lazy to write it out in full http://www.opengl.org/discussion_boards/ubb/wink.gif

Gavin
10-01-2001, 11:56 PM
Ooo, that makes me feel old.... the differnece between arc and inv is just a question of age! :-(

MrShoe
10-02-2001, 02:09 AM
Lol, thanks, but what is cosh then?

Bob
10-02-2001, 02:54 AM
hyperbolic cosine

cosh(x) = (e^x + e^-x) / 2