Numerical Solutions from Highly Oscillatory Integrals to Highly Oscillatory PDEs