On Sunday, January 19, 2020 at 6:46:50 AM UTC-8, mendes wrote:
>
> #But, for t>1, there is a RuntimeError: mismatch in sr-to-maxima
> var('x,t')
> assume(1<t)
> f=unit_step(t-1)
> g=t
> fg = integrate(f(t=x)*g(t=t-x),x,0,t).simplify_full().expand()
> show(fg)
> forget()
>
> In the meantime, you can, as a workaround, use f=heaviside(t-1). That does 
not give an error. Unfortunately, it gives a nonsensical result: it returns 
"sage4", which is undoubtedly a symbol that somewhere was supposed to be 
bound to the actual result, but which didn't get bound. Looks like it needs 
another ticket :-):

sage: var("b") 
sage: assume(b>0) 
sage: integrate(heaviside(x),x,0,b)
sage4

 

> #In previous versions of Sage the answer, in the case piecewise functions 
> like  f*g,   could employ the functions like sign()  or abs(),  but  no 
> Error messages appeared 
>
> #The following alternative raises no Error, but does not evaluate the f*g 
> function to  t^2/2-t+1/2, as desired:
> var('x,t')
> assume(1<t)
> f=unit_step(t-1)
> g=t
> fg = integrate(f(t=x)*g(t=t-x),x,0,t,hold=False)
> show(fg)
> forget()
>
> Thank you again.
>
>
>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/a0c2304e-7e7b-47c7-bd95-4d503767c736%40googlegroups.com.

Reply via email to