pub fn sin(
x: &FBig<HalfAway, 10>,
precision: usize,
) -> Result<FBig<HalfAway, 10>, OxiNumError>Expand description
Compute sin(x) using Taylor series with argument reduction.
§Examples
use oxinum_float::sin;
use std::str::FromStr;
let x = dashu_float::DBig::from_str("0.0").unwrap();
let result = sin(&x, 30).unwrap();
let s = result.to_string();
assert!(s.starts_with("0"), "sin(0) = {}", s);