#12070: Unavoidable DeprecationWarnings when calling piecewise functions
-----------------------------+------------------------
Reporter: mjo | Owner: burcin
Type: defect | Status: new
Priority: minor | Milestone: sage-6.4
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
-----------------------------+------------------------
Comment (by nbruin):
The example in this ticket is just misuse. `piecewise` takes functions,
not expressions. Oneliner solution is
{{{
f = piecewise([[(-1,1), (x**2).function(x)]])
}}}
It's essential to be explicit about the variable name. See:
{{{
var('foo,bar')
f = piecewise([[(-1,1), (foo+bar).function(foo)]])
}}}
Close as invalid or resolve by updating documentation?
--
Ticket URL: <http://trac.sagemath.org/ticket/12070#comment:10>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.