amruth11:
The sin function takes degrees. In my case it 70 degrees that is the Angle Of Fire (AOF).
The fact that doing the calculations assuming it takes radians makes them match the ones with an arduino seem to refute your claim.
If you really want to use degrees, there's a radians() function which converts.