(r: ArgIntoFloat, phi: ArgIntoFloat, vm: &VirtualMachine)
| 38 | |
| 39 | #[pyfunction] |
| 40 | fn rect(r: ArgIntoFloat, phi: ArgIntoFloat, vm: &VirtualMachine) -> PyResult<Complex64> { |
| 41 | pymath::cmath::rect(r.into_float(), phi.into_float()) |
| 42 | .map_err(|err| pymath_exception(err, vm)) |
| 43 | } |
| 44 | |
| 45 | #[pyfunction] |
| 46 | fn isinf(z: ArgIntoComplex) -> bool { |