dos_hypot - dalefugier/DOSLib GitHub Wiki

Calculates the hypotenuse. The function calculates the length of the hypotenuse of a right triangle, given the length of the two sides x and y (in other words, the square root of x2 + y2).

Syntax

(dos_hypot x y)

Parameters

x

The x value.

y

The y value.

Returns

The length of the hypotenuse, if successful.

nil on error.

Example

Command: (dos_hypot 3 4)
5