Skip to main content

ln2

Function ln2 

Source
pub fn ln2(prec: u32) -> OxiNumResult<BigFloat>
Expand description

Return ln 2 at prec bits of precision.

§Errors

Propagates any arithmetic error from the internal atanh series.

§Examples

use oxinum_float::native::ln2;
let l = ln2(64).expect("ln2");
assert!((l.to_f64() - std::f64::consts::LN_2).abs() < 1e-14);