I'm trying to write a code that calculates the approximate factorial of a number using Stirling's formula.
Here's the line that calculates it:
appFact = pow(exp, -num) * pow(num, num) * sqrt(2 * num * PI);
The error comes in at pow(exp, -num) with pow underlined in red.
IntelliSense: no instance of overloaded function "pow" matches the argument list 25
float num, num2, num3, num4, MEAN, stanDev, VARI, appFact, exp;
readFile >> num >> num2 >> num3 >> num4;
appFact = pow(exp, -num) * pow(num, num) * sqrt(2 * num * PI);