#14801: Piecewise functions done right
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner: burcin
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: Volker Braun, | Reviewers:
Ralf Stephan | Work issues:
Report Upstream: N/A | Commit:
Branch: public/piecewise | 262b01e0de35a35d46fedda5e99255a26b9b36fa
Dependencies: #14800, #14780, | Stopgaps:
#9556, #13125, #14802, #16397 |
-------------------------------------+-------------------------------------
Comment (by rws):
Replying to [comment:27 jdemeyer]:
> This is a bug:
> {{{
> sage: var('y')
> y
> sage: f(x) = piecewise([((0,2), y^3)])
> sage: f(1)
> 1
> }}}
>
> The result should be `y^3` as in:
> {{{
> sage: f(x) = y^3
> sage: f(1)
> y^3
> }}}
Really?
{{{
sage: f(x) = piecewise([((0,2), y^3)],var=x)
sage: f
x |--> piecewise(x|-->y^3 on (0, 2); x)
sage: f(1)
y^3
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/14801#comment:28>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.