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

Function exp

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

Source from the content-addressed store, hash-verified

77 // Power and logarithmic functions:
78 #[pyfunction]
79 fn exp(x: ArgIntoFloat, vm: &VirtualMachine) -> PyResult<f64> {
80 pymath::math::exp(x.into_float()).map_err(|err| pymath_exception(err, vm))
81 }
82
83 #[pyfunction]
84 fn exp2(x: ArgIntoFloat, vm: &VirtualMachine) -> PyResult<f64> {

Callers 6

geometric_meanFunction · 0.90
normal_kernelFunction · 0.90
logistic_kernelFunction · 0.90
sigmoid_kernelFunction · 0.90
pdfMethod · 0.90
gammaFunction · 0.90

Calls 2

pymath_exceptionFunction · 0.85
into_floatMethod · 0.80

Tested by 1

gammaFunction · 0.72