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
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
Code:#include <math.h>
float something = asin(x);
Use standard libraries -- don't use <math.h>, use <cmath>
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.. -_-
It's implied, but I should probably have explicitly said that.