Skip to content

Files

15 lines (11 loc) · 296 Bytes

068-cpp17-lib-misc-hypot.md

File metadata and controls

15 lines (11 loc) · 296 Bytes

3次元hypot

float hypot(float x, float y, float z);
double hypot(double x, double y, double z);
long double hypot(long double x, long double y, long double z);

ヘッダーファイル<cmath>に3次元のhypotが追加された。

戻り値

x 2 + y 2 + z 2