Crates.io | trig |
lib.rs | trig |
version | 0.1.3 |
source | src |
created_at | 2024-11-10 01:33:18.228673 |
updated_at | 2024-11-10 16:41:04.800481 |
description | Complete set of trigonometric and hyperbolic functions in Rust. |
homepage | |
repository | https://github.com/tamaskis/trig |
max_upload_size | |
id | 1442506 |
size | 68,058 |
Complete set of trigonometric and hyperbolic functions in Rust.
Please see https://docs.rs/trig.
use trig::Trig;
let x = std::f64::consts::FRAC_PI_2;
let abs_difference = (x.csc() - 1.0).abs();
assert!(abs_difference < 1e-16);