|
|||||
function | FP_sin |
Related Syntax | Other Library Functions |
Library: Floating Point
Include: omfloat.xin |
Returns: Opaque
The sine of a floating point number. |
define external float function FP_sin value float x
A trigonometric function that calculates, in radians, the sine of the floating point number.
Out-of-range values, as in the case of acos() and asin() for |x| > 1, are returned as "not a number" (NaN).
The following sample shows how to use FP_sin
to calculate the value of the sin of PI/2. The result is 1.00.
include "fpfloat.xin" . . . local float pi set pi to FP_v "3.14159265358979323846" output "Sin (pi/2) is " || FP_d (FP_sin (FP_div (pi, FP_v "2" ) ), 2) || "%n"
Related Syntax FP_cos FP_tan FP_asin FP_atan FP_sinh FP_cosh FP_tanh FP_atan2 |
Other Library Functions FP_abs FP_acos FP_add FP_asin FP_atan FP_atan2 FP_ceil FP_cos FP_cosh FP_d FP_div FP_eq FP_exp FP_floor FP_ge FP_gt FP_hypot FP_isnan FP_isneg FP_ispos FP_iszero FP_j0 FP_j1 FP_jn FP_le FP_log FP_log10 FP_lt FP_mod FP_mul FP_ne FP_nearest FP_neg FP_pow FP_s FP_sin FP_sinh FP_sqrt FP_sub FP_tan FP_tanh FP_trunc FP_v FP_y0 FP_y1 FP_yn |
---- |