On Jan 9, 6:39 pm, Renan Birck Pinheiro <renan.ee.u...@gmail.com>
wrote:
> Hi,
>
> I'm trying to solve a differential equation with unit step, e.g. the
> equation y'(x) = U(x-5) - where U is the unit step, and the inicial
> condition y(0) is 0.
>
> The result is 0 for 0<x<5 and x-5 for x>5 (it's a simple integral of the
> unit step function). WolframAlpha gives the correct result [1], however
> sage fails:

Sage can give the same results:

sage: maxima('load("abs_integrate.mac")')
sage: maxima('integrate(unit_step(t-5),t,0,x)').sage()
1/2*x + 1/2*abs(x - 5) - 5/2

Andrzej Chrzeszczyk

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to