Numerical Modeling in Applied Physics and Astrophysics