(
z: ArgIntoComplex,
base: OptionalArg<ArgIntoComplex>,
vm: &VirtualMachine,
)
| 89 | |
| 90 | #[pyfunction] |
| 91 | fn log( |
| 92 | z: ArgIntoComplex, |
| 93 | base: OptionalArg<ArgIntoComplex>, |
| 94 | vm: &VirtualMachine, |
| 95 | ) -> PyResult<Complex64> { |
| 96 | pymath::cmath::log( |
| 97 | z.into_complex(), |
| 98 | base.into_option().map(|b| b.into_complex()), |
| 99 | ) |
| 100 | .map_err(|err| pymath_exception(err, vm)) |
| 101 | } |
| 102 | |
| 103 | #[pyfunction] |
| 104 | fn log10(z: ArgIntoComplex, vm: &VirtualMachine) -> PyResult<Complex64> { |
nothing calls this directly
no test coverage detected