pub fn exp(x: &DBig, precision: usize) -> OxiNumResult<DBig>Expand description
Compute e^x with the given number of significant decimal digits.
ยงExamples
use oxinum_float::exp;
use std::str::FromStr;
let x = dashu_float::DBig::from_str("1.0").unwrap();
let result = exp(&x, 30).unwrap();
let s = result.to_string();
assert!(s.starts_with("2.71828"), "exp(1) = {}", s);