#define vs. const

You are right - was talking global and those which the optimizer can identify at compile time - not generic use of const

Note that in your case the optimizer might still decide to not allocate the memory and just dump the formula where you use it.