"The Physics Problem"

hehe, Sometimes teachers while checking offer discount.

what I now want is that the gravitational(gravity Sensor) quantities & Speed derived from a electronic circuitry of mine along with Constants fed into the Final Equation and get the angle,all this need to be calculated in c/c++ with available moth functions library, how to go about that?