MCPcopy Create free account
hub / github.com/RustPython/RustPython / exp2

Function exp2

crates/stdlib/src/math.rs:84–86  ·  view source on GitHub ↗
(x: ArgIntoFloat, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

82
83 #[pyfunction]
84 fn exp2(x: ArgIntoFloat, vm: &VirtualMachine) -> PyResult<f64> {
85 pymath::math::exp2(x.into_float()).map_err(|err| pymath_exception(err, vm))
86 }
87
88 #[pyfunction]
89 fn expm1(x: ArgIntoFloat, vm: &VirtualMachine) -> PyResult<f64> {

Callers 1

GenDotMethod · 0.90

Calls 2

pymath_exceptionFunction · 0.85
into_floatMethod · 0.80

Tested by 1

GenDotMethod · 0.72