1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math: update documentation (#14457)

This commit is contained in:
David 'Epper' Marshall
2022-05-20 01:45:54 -04:00
committed by GitHub
parent 23568f19da
commit 120f31b4d9
12 changed files with 108 additions and 51 deletions

View File

@@ -1,5 +1,6 @@
module math
// hypot returns the hypotenuse of the triangle give two sides
pub fn hypot(x f64, y f64) f64 {
if is_inf(x, 0) || is_inf(y, 0) {
return inf(1)