S = .5 * g ^ (t*t)
S = .5 * g ^ (t*t) ++++ Nope. It is not g raised to the power of t*t.
This is what you are “shooting” for:
S = .5 * g * t^2
S equals one half gee tee squared.