MCPcopy Index your code
hub / github.com/RustPython/RustPython / exp

Function exp

crates/stdlib/src/cmath.rs:61–63  ·  view source on GitHub ↗
(z: ArgIntoComplex, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

59
60 #[pyfunction]
61 fn exp(z: ArgIntoComplex, vm: &VirtualMachine) -> PyResult<Complex64> {
62 pymath::cmath::exp(z.into_complex()).map_err(|err| pymath_exception(err, vm))
63 }
64
65 #[pyfunction]
66 fn sqrt(z: ArgIntoComplex, vm: &VirtualMachine) -> PyResult<Complex64> {

Callers

nothing calls this directly

Calls 2

pymath_exceptionFunction · 0.85
into_complexMethod · 0.80

Tested by

no test coverage detected