#hyperbolic #trigonometric #complete #set #function

trig

Complete set of trigonometric and hyperbolic functions in Rust

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

#1061 in Rust patterns

Download history 162/week @ 2024-11-04 104/week @ 2024-11-11 6/week @ 2024-11-18 12/week @ 2024-12-02 44/week @ 2024-12-09

68 downloads per month
Used in numdiff

MIT/Apache

55KB
699 lines

trig

github crates.io docs.rs

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.

No runtime deps