calculating trajectory

calculating trajectory