Update vm/src/stdlib/cmath.rs

Co-authored-by: Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com>
This commit is contained in:
Aaditya
2021-09-13 22:43:36 +05:30
committed by Jeong YunWon
parent 75a9413e22
commit 4cc160eafe

View File

@@ -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()