Computation of Ray Amplitudes in Inhomogeneous Media with Curved