mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Update vm/src/stdlib/cmath.rs
Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
This commit is contained in:
@@ -72,7 +72,7 @@ mod cmath {
|
||||
let z = z.to_complex();
|
||||
result_or_overflow(z, z.exp(), vm)
|
||||
}
|
||||
/// Calculates the square Root of the complex number
|
||||
/// Return the square root of z.
|
||||
#[pyfunction]
|
||||
fn sqrt(z: IntoPyComplex) -> Complex64 {
|
||||
z.to_complex().sqrt()
|
||||
|
||||
Reference in New Issue
Block a user