trig

Crates.iotrig
lib.rstrig
version0.1.3
sourcesrc
created_at2024-11-10 01:33:18.228673
updated_at2024-11-10 16:41:04.800481
descriptionComplete set of trigonometric and hyperbolic functions in Rust.
homepage
repositoryhttps://github.com/tamaskis/trig
max_upload_size
id1442506
size68,058
Tamas Kis (tamaskis)

documentation

https://docs.rs/trig

README

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.
Commit count: 7

cargo fmt