# trig [github](https://github.com/tamaskis/trig) [crates.io](https://crates.io/crates/trig) [docs.rs](https://docs.rs/trig) Complete set of trigonometric and hyperbolic functions in Rust. ## Documentation Please see https://docs.rs/trig. ## Examples ```rust use trig::Trig; let x = std::f64::consts::FRAC_PI_2; let abs_difference = (x.csc() - 1.0).abs(); assert!(abs_difference < 1e-16); ``` #### License Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.