| 1 | module math |
| 2 | |
| 3 | fn C.sqrt(x f64) f64 |
| 4 | fn C.sqrtf(x f32) f32 |
| 5 | |
| 6 | // sqrt calculates square-root of the provided value. (float64) |
| 7 | @[inline] |
| 8 | pub fn sqrt(a f64) f64 { |
| 9 | return C.sqrt(a) |
| 10 | } |
| 11 | |
| 12 | // sqrtf calculates square-root of the provided value. (float32) |
| 13 | @[inline] |
| 14 | pub fn sqrtf(a f32) f32 { |
| 15 | return C.sqrtf(a) |
| 16 | } |
| 17 |