(x: ArgIntoComplex, vm: &VirtualMachine)
| 33 | |
| 34 | #[pyfunction] |
| 35 | fn polar(x: ArgIntoComplex, vm: &VirtualMachine) -> PyResult<(f64, f64)> { |
| 36 | pymath::cmath::polar(x.into_complex()).map_err(|err| pymath_exception(err, vm)) |
| 37 | } |
| 38 | |
| 39 | #[pyfunction] |
| 40 | fn rect(r: ArgIntoFloat, phi: ArgIntoFloat, vm: &VirtualMachine) -> PyResult<Complex64> { |