hypot

calculate the hypotenuse of a right-angle triangle with given base and height


Parameters

hypot base :integer :floating
      height :integer :floating

Returns

  • :floating

Examples

copy
print hypot 3 4 ; 5.0 print hypot 4.0 5.0 ; 6.403124237432849

Related