Skip to content

Commit 109472a

Browse files
author
Dawn Perchik
committed
P0030R1 Proposal to Introduce a 3-Argument Overload to std::hypot (option #2),
1 parent 1586a0a commit 109472a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

source/numerics.tex

+9
Original file line numberDiff line numberDiff line change
@@ -9256,6 +9256,15 @@
92569256
long double trunc(long double);
92579257
\end{codeblock}
92589258

9259+
\pnum
9260+
\Cpp adds three-argument versions of certain math functions in \tcode{<cmath>}:
9261+
\begin{codeblock}
9262+
double hypot(double x, double y, double z);
9263+
float hypot(float x, float y, float z);
9264+
long double hypot(long double x, long double y, long double z);
9265+
\end{codeblock}
9266+
\returns $\sqrt{x^2+y^2+z^2} \mbox{.}$
9267+
92599268
\pnum
92609269
The classification/comparison functions behave the same as the C macros with the
92619270
corresponding names defined in 7.12.3, Classification macros, and 7.12.14, Comparison

0 commit comments

Comments
 (0)