flang.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 := f64.type.sqrt (x**2 + y**2)
What are effects?
Running example
ex200 is x := 3.0 y := 4.0 h := f64.type.sqrt (x**2 + y**2) say h
What are effects?
next: Idiom # 201: Euclidean norm