#14801: Piecewise functions done right
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:  burcin
           Type:  defect             |       Status:  needs_review
       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   |  496128f8fad75a19945588139d887a5707a72214
   Dependencies:  #14800, #14780,    |     Stopgaps:
  #9556, #13125, #14802, #16397      |
-------------------------------------+-------------------------------------

Comment (by rws):

 Replying to [comment:19 kcrisman]:
 > It looks like there is still no proper deprecation for the "old"
 piecewise stuff.  Given that there seems to be a significant amount of
 stuff that that has (even if in an antiquated form that should be redone),
 perhaps a potential solution would be to do a deprecation of `Piecewise`
 that leads to the old version, but where `piecewise` is the new one?
 (Wait, I already said this in comment:11.)
 Seems that Volker already implemented it, just the doctests have to be
 adapted, and the `cmp` stuff from #16397:
 {{{
 sage: R.<x> = PolynomialRing(QQ, 'x')
 sage: f = Piecewise([[(0,1),1*x^0]])
 /home/ralf/sage/src/bin/sage-ipython:1: DeprecationWarning: use lower-case
 piecewise instead
 See http://trac.sagemath.org/14801 for details.
   #!/usr/bin/env python
 ----------------------------------------------------------------------
 sage -t --long src/sage/functions/piecewise.py  # 3 doctests failed
 sage -t --long src/sage/functions/piecewise-old.py  # 203 doctests failed
 }}}
 I think I'll put some work into it to reduce doctest failures a bit.

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