C Tutorial/math.h/hypot — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
(нет различий)
|
Текущая версия на 13:32, 25 мая 2010
hypot
Item Value Header file math.h Declaration float hypotf(float side1, float side2);double hypot(double side1, double side2);long double hypotl(long double side1, long double side2); Return return the square root of the sum of the squares of side1 and side2.
<source lang="cpp">#include <math.h>
#include <stdio.h> int main(void) { int e; double f; f = hypotf(3, 4); printf("%f", f); }</source>