#14801: Piecewise functions done right
-------------------------------------+-------------------------------------
Reporter: vbraun | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: Volker Braun | Reviewers:
Report Upstream: N/A | Work issues:
Branch: public/piecewise | Commit:
Dependencies: #14800, #14780, | 6d00b38418552984fa951bf9c4090da001a1ec9f
#9556, #13125, #14802 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by rws):
* dependencies: #14800, #14780, #9556, #13125 => #14800, #14780, #9556,
#13125, #14802
Comment:
Ok, with the dependencies #13125 and #14802 there remain two failing
doctests in `piecewise.py`:
{{{
File "src/sage/functions/piecewise.py", line 493, in
sage.functions.piecewise.PiecewiseFunction.EvaluationMethods.extension
Failed example:
g(3)
...
File "<doctest
sage.functions.piecewise.PiecewiseFunction.EvaluationMethods.extension[3]>",
line 1, in <module>
g(Integer(3))
File "/home/ralf/sage/local/lib/python2.7/site-
packages/sage/symbolic/function_factory.py", line 387, in new_f
return f(ex, *new_args, **kwds)
File "/home/ralf/sage/local/lib/python2.7/site-
packages/sage/functions/piecewise.py", line 398, in __call__
return self.subs(substitution)
File "expression.pyx", line 4212, in
sage.symbolic.expression.Expression.substitute
(sage/symbolic/expression.cpp:20863)
File "/home/ralf/sage/local/lib/python2.7/site-
packages/sage/functions/piecewise.py", line 209, in _subs_
raise ValueError('point is not in the domain')
ValueError: point is not in the domain
}}}
and the same in line `498`, as well as more than 200 failing doctests in
`piecewise-old.py` because of the deprecation.
--
Ticket URL: <http://trac.sagemath.org/ticket/14801#comment:9>
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.