vlib/math: Add a pure V backend for vlib/math (#11267)

This commit is contained in:
Ulises Jeremias Cornejo Fandos 2021-08-22 18:35:28 -03:00 committed by GitHub
parent dd486bb0fb
commit 1cfc4198f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
67 changed files with 3805 additions and 1798 deletions

View file

@ -27,7 +27,7 @@ pub fn (c Complex) str() string {
// Complex Modulus value
// mod() and abs() return the same
pub fn (c Complex) abs() f64 {
return C.hypot(c.re, c.im)
return math.hypot(c.re, c.im)
}
pub fn (c Complex) mod() f64 {