8 s ·Traduire

https://docs.vultr.com/cpp/sta....ndard-library/cmath/



pow function c++ The pow() function in C++ <cmath> calculates the power of a number, raising a base to an exponent.

Syntax:
cpp
Copy
Edit
double pow(double base, double exponent);
float pow(float base, float exponent);
long double pow(long double base, long double exponent);
base → The number to be raised.
exponent → The power to which the base is raised.
Returns → base^exponent (base raised to the exponent).

Lire la suite