Astrophysics through computation : with Mathematica support