repl.txt (933B)
1 2 {{alias}}( x, y ) 3 Computes the sine of a number on `[-π/4, π/4]`. 4 5 For increased accuracy, the number for which the cosine should be evaluated 6 can be supplied as a double-double number (i.e., a non-evaluated sum of two 7 double-precision floating-point numbers `x` and `y`). 8 9 The two numbers must satisfy `|y| < 0.5 * ulp( x )`. 10 11 If either argument is `NaN`, the function returns `NaN`. 12 13 Parameters 14 ---------- 15 x: number 16 Input value (in radians). 17 18 y: number 19 Tail of `x`. 20 21 Returns 22 ------- 23 out: number 24 Sine. 25 26 Examples 27 -------- 28 > var y = {{alias}}( 0.0, 0.0 ) 29 ~0.0 30 > y = {{alias}}( {{alias:@stdlib/constants/float64/pi}}/6.0, 0.0 ) 31 ~0.5 32 > y = {{alias}}( 0.619, 9.279e-18 ) 33 ~0.58 34 35 > y = {{alias}}( NaN, 0.0 ) 36 NaN 37 > y = {{alias}}( 2.0, NaN ) 38 NaN 39 > y = {{alias}}( NaN, NaN ) 40 NaN 41 42 See Also 43 -------- 44