repl.txt (530B)
1 2 {{alias}}( x ) 3 Computes the half-value versed cosine. 4 5 The half-value versed cosine is defined as `(1 + cos(x)) / 2`. 6 7 Parameters 8 ---------- 9 x: number 10 Input value (in radians). 11 12 Returns 13 ------- 14 y: number 15 Half-value versed cosine. 16 17 Examples 18 -------- 19 > var y = {{alias}}( 3.14 ) 20 ~0.0 21 > y = {{alias}}( -4.2 ) 22 ~0.2549 23 > y = {{alias}}( -4.6 ) 24 ~0.4439 25 > y = {{alias}}( 9.5 ) 26 ~0.0014 27 > y = {{alias}}( -0.0 ) 28 1.0 29 30 See Also 31 -------- 32