English

Computing the coefficients for the power series solution of the Lane-Emden equation with the Python library SymPy

Mathematical Software 2015-01-27 v2

Abstract

It is shown how the Python library Sympy can be used to compute symbolically the coefficients of the power series solution of the Lane-Emden equation (LEE). Sympy is an open source Python library for symbolic mathematics. The power series solutions are compared to the numerically computed solutions using matplotlib. The results of a run time measurement of the implemented algorithm are discussed at the end.

Keywords

Cite

@article{arxiv.1409.2008,
  title  = {Computing the coefficients for the power series solution of the Lane-Emden equation with the Python library SymPy},
  author = {Klaus Rohe},
  journal= {arXiv preprint arXiv:1409.2008},
  year   = {2015}
}

Comments

14 pages, 4 figures, 2 source code listings