Write 4 * x
if that is what you mean.
No, I meant x^4, but it doesn't work, if I write like that
The ^ symbol is the exclusive or symbol, not the power symbol. You need to use pow() like the other areas in this calculation
x^4
mean what do you want?
I meant x*x*x*x, but this way it still doesn't work. It gives me the same error: invalid suffix "x" on integer constant on row 9.
Just use pow() with the appropriate arguments. It's already there in the code, just copy + paste it as required.
Or simply put x*x*x*x if you like.
Last edited on