![]() |
C - Entwicklung Mathematik: Wurzel und Potenz Homepage von PS-Trainer - C-Entwicklung - Mathematik - an PS-Trainer |
|
| Math and related | Root and Power |
| pow | Calculate x raised to the power of y. |
| sqrt | Calculate the square root. |
| pow Calculates x raised to the power of y. double pow( double x, double y );
Remarks The pow function computes x raised to the power of y. pow does not recognize integral floating-point values greater than 264, such as 1.0E100. Subject: Floating-Point Support Routines Keywords: See also exp, log, sqrt |
||||||
| Return Value pow returns the value of x^y. No error message is printed on overflow or underflow. Values of x and y Return Value of pow x < > 0 and y = 0.0 1 x = 0.0 and y = 0.0 1 x = 0.0 and y < 0 INF Parameters
|
||||||
|
Example #include <math.h> void main( void ) z = pow(
x, y ); |
| sqrt Calculates the square root. double sqrt( double x );
Subject: Floating-Point Support Routines Keywords: See also exp, log, pow |
||||||
| Return Value The sqrt function returns the square-root of x. If x is negative, sqrt returns an indefinite (same as a quiet NaN). You can modify error handling with _matherr. Parameter
|
||||||
| Example /* SQRT.C: This program calculates a square root. */ #include <math.h> void main( void ) answer = sqrt(
question ); |
| Aktuelle Daten dieser Seite | Letzte Änderung: |
| |