|
#define E 2.7182818284590451d
double Math_ArcSine(double x)
return 2 * atan(x / (1 + sqrt(1 - x * x)))
'return atan(x / sqrt(-x * x + 1))
double Math_ArcCosine(double x)
return 2 * atan(sqrt(1 - x * x) / (1 + x))
double Math_SineHyper(double x)
x = x % (2 * pi)
return (exp(x) - exp(-x)) / 2
double Math_ConsineHyper(double x)
x = x % (2 * pi)
return (exp(x) + exp(-x)) / 2
double Math_TanHyper(double x)
x = x % (2 * pi)
var exp2x = exp(2 * x)
return (exp2x - 1) / (exp2x + 1)
bool Math_NaN(double x)
return x == 0d / 0d
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.