(x: ArgIntoFloat, vm: &VirtualMachine)
| 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> { |