Compute the length of the given leg.
legLen(
hypotenuse: number(Length),
leg: number(Length),
): number(Length)
Arguments
Name | Type | Description | Required |
---|---|---|---|
hypotenuse | number(Length) | The length of the triangle's hypotenuse. | Yes |
leg | number(Length) | The length of one of the triangle's legs (i.e. non-hypotenuse side). | Yes |
Returns
number(Length)
- A number.
Examples
legLen(hypotenuse = 5, leg = 3)