由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Mathematics版 - calculate an integral in python (转载)
相关主题
求面积/体积问一个实变问题
How to calculate this derivative?请问关于一个分部积分的问题 (转载)
how to calculate the following integration?is it possible to Calculate fractional exponents without calculator? Thanks!
math symbol "$\sim$" vs "$\approx$"问一道题exponential的题
请教一个数值问题,请帮助[转载] How to use Latex in XFIG under unix
a questionmatlab求教:怎样定义n个symbolic变量呀?
integralhow can we input the symbol for the real number? (转载)
50个包子请教 Chebyshev's integral inequality有没有人会用Matlab 积分?
相关话题的讨论汇总
话题: integral话题: python话题: calculate话题: oo话题: invalid
进入Mathematics版参与讨论
1 (共1页)
m******t
发帖数: 273
1
【 以下文字转载自 Quant 讨论区 】
发信人: myregmit (myregmit), 信区: Quant
标 题: calculate an integral in python
发信站: BBS 未名空间站 (Fri Mar 21 09:39:52 2014, 美东)
I need to calculate an integral in python.
I have imported sympy.
g(a,z) = integral_from_z_to_inf of ( t^(a-1) * e^(-1))
in python:
x,a,z = symbols('x a z')
g = integrate(x**(a-1) * exp(-x), z, oo)
I got error:
ValueError: Invalid limits given: (z, oo)
Any help would be appreciated !
Thanks !
1 (共1页)
进入Mathematics版参与讨论
相关主题
有没有人会用Matlab 积分?请教一个数值问题,请帮助
matlab能不能算无穷区间的数值广义积分?a question
Mathematica这个软件有什么长处integral
matlab 能不能解符号矩阵方程?50个包子请教 Chebyshev's integral inequality
求面积/体积问一个实变问题
How to calculate this derivative?请问关于一个分部积分的问题 (转载)
how to calculate the following integration?is it possible to Calculate fractional exponents without calculator? Thanks!
math symbol "$\sim$" vs "$\approx$"问一道题exponential的题
相关话题的讨论汇总
话题: integral话题: python话题: calculate话题: oo话题: invalid