【问题标题】:How to express the following equation containing sigma and factorial notation in Python (SymPy)?如何在 Python (SymPy) 中表达以下包含 sigma 和阶乘符号的方程?
【发布时间】:2022-07-02 00:33:44
【问题描述】:

指数函数的麦克劳林级数: enter image description here

【问题讨论】:

标签: python sympy factorial


【解决方案1】:

你是这样写的:

from sympy import *
x, n = symbols("x n")
expr = Sum(x**n / factorial(n), (n, 0, oo))
print(expr)
# out: Sum(x**n/factorial(n), (n, 0, oo))

您可以执行help(Sum) 来阅读它的文档。

【讨论】:

    猜你喜欢
    • 2018-06-04
    • 1970-01-01
    • 1970-01-01
    • 2018-10-22
    • 1970-01-01
    • 1970-01-01
    • 2016-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多