Unity mathematics phrasing.

I’m trying to use this to calculate fall damage: “0.005(MaxFall-200)^2” so it’s “y=0.005(x-200)^2”, however unity gives me this error:
“It is not possible to invoke an expression of type ‘float’”; how would I rewrite it to work?

For the square operator you can use Mathf.Pow

Then your calcul will look like this :

y = 0.005f * Mathf.Pow( (x-200), 2 );