MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / log2

Function log2

std/math/src/main/float.rs:70–70  ·  view source on GitHub ↗
(x: f64)

Source from the content-addressed store, hash-verified

68
69#[plugin_fn]
70fn log2(x: f64) -> Result<f64> { if x <= 0.0 { return Err(dom()); } Ok(libm::log2(x)) }
71
72#[plugin_fn]
73fn log10(x: f64) -> Result<f64> { if x <= 0.0 { return Err(dom()); } Ok(libm::log10(x)) }

Callers

nothing calls this directly

Calls 1

domFunction · 0.70

Tested by

no test coverage detected