4 releases
0.1.3 | Nov 10, 2024 |
---|---|
0.1.2 | Nov 10, 2024 |
0.1.1 | Nov 10, 2024 |
0.1.0 | Nov 10, 2024 |
#914 in Rust patterns
272 downloads per month
Used in numdiff
55KB
699 lines
trig
Complete set of trigonometric and hyperbolic functions in Rust.
Documentation
Please see https://docs.rs/trig.
Examples
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.