repl.txt (825B)
1 2 {{alias}}( [out,] x ) 3 Computes the Fresnel integrals S(x) and C(x). 4 5 Parameters 6 ---------- 7 out: Array|TypedArray|Object (optional) 8 Destination array. 9 10 x: number 11 Input value. 12 13 Returns 14 ------- 15 y: Array|TypedArray|Object 16 S(x) and C(x). 17 18 Examples 19 -------- 20 > var y = {{alias}}( 0.0 ) 21 [ ~0.0, ~0.0 ] 22 > y = {{alias}}( 1.0 ) 23 [ ~0.438, ~0.780 ] 24 > y = {{alias}}( {{alias:@stdlib/constants/float64/pinf}} ) 25 [ ~0.5, ~0.5 ] 26 > y = {{alias}}( {{alias:@stdlib/constants/float64/ninf}} ) 27 [ ~-0.5, ~-0.5 ] 28 > y = {{alias}}( NaN ) 29 [ NaN, NaN ] 30 31 > var out = new {{alias:@stdlib/array/float64}}( 2 ); 32 > var v = {{alias}}( out, 0.0 ) 33 <Float64Array>[ ~0.0, ~0.0 ] 34 > var bool = ( v === out ) 35 true 36 37 See Also 38 -------- 39