hypot

Summary

Returns the square root of all the arguments individually squared and then added together.

Usage

public static double hypot(...double values)

Returns

The square root of the sum of all the arguments squared.

Parameters

values

The values.

Description

Returns the square root of all the arguments individually squared and then added together. sqrt(value1^2, value2^2, value3^2, ...)

Examples

Basic Usage
1
2
3
4
import System;
 
Console.log(Math.hypot(2, 2));    // 2.8284271247461903
Console.log(Math.hypot(1, 2, 3)); // 3.741657386773941

Share

HTML | BBCode | Direct Link