#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   |  80e8f85240fdb7904c1339d0438243abf1238f00
   Dependencies:  #14800, #14780,    |     Stopgaps:
  #9556, #13125, #14802, #16397,     |
  #17759                             |
-------------------------------------+-------------------------------------
Changes (by rws):

 * dependencies:  #14800, #14780, #9556, #13125, #14802, #16397 => #14800,
     #14780, #9556, #13125, #14802, #16397, #17759


Comment:

 Replying to [comment:27 jdemeyer]:
 > The result should be `y^3` as in:
 > {{{
 > sage: f(x) = y^3
 > sage: f(1)
 > y^3
 > }}}
 OK, this works now with '''one''' variable, dependent on #17759 (please
 review). I'm of the opinion this should work too:
 {{{
 sage: f(x,y) = piecewise([((0,2), y^3)])
 sage: f(1,1)
 TypeError: __call__() takes at most 5 arguments (6 given)
 }}}
 but I have no idea atm what changes are needed for this.
 `piecewise([((0,2), y^3)], var=(x,y))` is certainly not supported now.

--
Ticket URL: <http://trac.sagemath.org/ticket/14801#comment:34>
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.

Reply via email to