Hello,

First, the help text:

float powf (float x, float y);

double pow (double x, double y);

long double powd (long double x, long double y);

The power functions compute the value of the first argument raised to the power of the second argument.

A domain error occurs if the first argument is negative and the second argument cannot be represented as an integer. If the first argument is zero, the second argument is less than or equal to zero and the result cannot be represented, zero is returned.

z = pow (5.0, 2.0); /* z = 16.0 */

x = powf (5.0, 2.0); /* x = 16.0 */

Neither 5 to the power of 2 is 16, nor 2 to the power of 5 is 16.

As it can be seen when running some test code, pow(5.0, 2.0) returns 25.0. So the Description is right, only the example is wrong.

I suggest that you fix that in the next update...

Kind Regards,

Stefan

Hi Stephan,

Thanks for pointing this out. FYI, this issue is corrected in for CCES by changing the 5.0 inputs to 4.0.

Regards,

Stuart.