fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 200: Return hypotenuse
Idiom # 200: Return hypotenuse
See
programming-idioms.org
:
Code
h := (x**2 + y**2).sqrt
What are effects?
Running example
ex200 is x := 3.0 y := 4.0 h := (x**2 + y**2).sqrt say h
What are effects?
last changed: 2024-07-01
next: Idiom # 201: Euclidean norm