Try to understand how to use exponant in C
I try to understand how to use the exponent in C without succed..
The goal is to calculate the function of x :
f(x) = (2x + 3)(3x^2 + 2)
the documentation of pow :
The output when i compile the program :
clang -o main-a main-a.c
main-a.c:16:33: error: expected expression f = (2 * x + 3) * (3 * powf(x, float 2) + 20); ^ 1 error generated.