Compiler optimizations for math

Hopefully the compiler was programmed to follow the order of precedence.

Thanks for the answer. I could not google anything conclusive. I like to include the full formula in the equations in the program to remind of how it works. But if was going to cost memory or cycles then I would just do the math myself. I do understand the compiler can only optimize that portion (portions) independent of the variable.