csc

Function csc 

Source
pub fn csc(x: f64) -> f64
Expand description

§csc(x)

Trigonometric Function

The csc function computes the cosecant of a number (in radians).

§Examples

use mathlab::math::{csc, INF_F64 as inf};
assert_eq!(csc(-0.5235987756), -2.0);
assert_eq!(csc(0.0), inf);
assert_eq!(csc(0.5235987756), 2.0);
assert_eq!(csc(0.7853981634), 1.4142135623);
assert_eq!(csc(1.0471975512), 1.1547005384);
assert_eq!(csc(1.5707963268), 1.0);
assert_eq!(csc(3.1415926536), -inf);
assert_eq!(csc(4.7123889804), -1.0);
assert_eq!(csc(6.2831853072), inf);

End Fun Doc