#1773: piecewise functions and integration / arithmetic do not play well
together
------------------------+---------------------------------------------------
Reporter: was | Owner: gfurnish
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.1
Component: calculus | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------+---------------------------------------------------
Comment(by kcrisman):
Replying to [comment:2 rlm]:
> This isn't specific to integrate. The problem is that piecewise
functions don't play well with *symbolics*
>
> {{{
> sage: f1(x) = -abs(x) + 1
> sage: f2(x) = abs(x - 2) - 1
> sage: tri_wave = piecewise([ [(-1,1), f1], [(1,3), f2]])
> sage: tri_wave(x)
> SAME ERROR
> }}}
Or see what happens when we try to multiply piecewise and symbolic.
{{{
sage: f = Piecewise([[(0,pi/2),-1],[(pi/2,pi),2]])
sage: f*sin(x)
---------------------------------------------------------------------------
AttributeError
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/1773#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.