I've got a program that I'm writing at the mo, but need help with the inverse sine function. Is there a function that can give you it???

thanks in advance. Dom

Printable View

- 03-13-2005Finchie_88How to program in the inverse sine function
I've got a program that I'm writing at the mo, but need help with the inverse sine function. Is there a function that can give you it???

thanks in advance. Dom - 03-13-2005KrakCode:
`#include <math.h>`

float something = asin(x);

- 03-13-2005Kybo_Ren
Use standard libraries -- don't use <math.h>, use <cmath>

- 03-13-2005Hunter2
And while you're at it, if you use <cmath> I believe the *correct* way of using the function is to prefix it with std::.

double something = std::asin(x);

Although, of course, much of the time the code will compile even without the std:: in front**or**the <cmath>/<math.h> include.. -_- - 03-13-2005Kybo_Ren
It's implied, but I should probably have explicitly said that.