由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
_Python版 - solve equations of integrals in python (转载)
相关主题
solve integral eq. embeeded with another integral eq. (转载)如何用 Python 修改 mp3 文件的音乐标题
calculate an integral in python (转载)在用 matplotlib 画多条曲线时,如何选择在一个colormap中最“等距”的颜色
用 logic array 来 index 另一个 array请问如何import一个python文件
An easter egg in Python :)ploting 3D surface in python (转载)
damn! just found some more "secrets" INSIDE "this"error draw map from shape file Python 3.2 basemap (转载)
One question about import exe result to python scriptsolve equations of integrals in python (转载)
google app engine 里 加载 numpysolve equations of integrals in python (转载)
如何在程序里测量一段代码执行的时间solve equations of integrals in python
相关话题的讨论汇总
话题: integrals话题: equations话题: def话题: solve话题: import
1 (共1页)
l******9
发帖数: 579
1
【 以下文字转载自 Statistics 讨论区 】
发信人: light009 (light009), 信区: Statistics
标 题: solve equations of integrals in python
发信站: BBS 未名空间站 (Fri Mar 21 12:21:31 2014, 美东)
I need to solve system equations of integrals in python 3.2.
from sympy import S, Eq, solve, integrals
import sympy as sym
import scipy.integrate as integ
x, b, c, m, v, L, u = S('x, b, c, m, v, L, u'.split())
equations = [Eq(m, integ.quad(xf(x, b, c), L, u))]
def xf(x, b,c):
return x*f(x,b,c)
def f(x, b, c):
return g(x, b,c) * (x/b)**(c-1) * sym.exp(-x/b)
def g(x, b, c):
c = 1+c // TypeError: unsupported operand type(s) for +: 'int' and '
tuple'
L = 1
u = 10
ff1 = b*g1(c, L/b)
def g1(a,z):
x = symbols('x')
return sym.integrate(x**(a-1) * sym.exp(-2*x), (x,z, sym.oo))
Any help would be appreciated !
1 (共1页)
相关主题
solve equations of integrals in pythondamn! just found some more "secrets" INSIDE "this"
How to solve this equation?One question about import exe result to python script
能问个基本的1st order PDE问题不?google app engine 里 加载 numpy
solve integral eq. embeeded with another integral eq. (转载)如何在程序里测量一段代码执行的时间
solve integral eq. embeeded with another integral eq. (转载)如何用 Python 修改 mp3 文件的音乐标题
calculate an integral in python (转载)在用 matplotlib 画多条曲线时,如何选择在一个colormap中最“等距”的颜色
用 logic array 来 index 另一个 array请问如何import一个python文件
An easter egg in Python :)ploting 3D surface in python (转载)
相关话题的讨论汇总
话题: integrals话题: equations话题: def话题: solve话题: import