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.
翻译:演示了如何使用 Python 库 Sympy 象征性地计算 Lane- Emden 等式( LEE) 电源序列溶液的系数。 Sympy 是用于符号数学的开源 Python 库。 电源序列溶液与使用 matplotlib 的数字计算溶液进行了比较。 执行算法的运行时间测量结果将在结尾处讨论 。