使用Sage Math求解常微分方程示例

desolve?

 

EXAMPLES:

sage: x = var('x')
sage: y = function('y')(x)
sage: desolve(diff(y,x) + y - 1, y)
(_C + e^x)*e^(-x)

 

sage: x = var('x')
sage: y = function('y')(x)
sage: de = diff(y,x,2) - y == x
sage: desolve(de, y)
_K2*e^(-x) + _K1*e^x - x

 

posted @ 2018-05-13 15:03  redfenglin  阅读(851)  评论(0编辑  收藏  举报