mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib/math: Add a pure V backend for vlib/math (#11267)
This commit is contained in:
parent
dd486bb0fb
commit
1cfc4198f5
67 changed files with 3805 additions and 1798 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue