#17757: substitute_function with var argument
-------------------------+----------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.5
Component: symbolics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+----------------------------
{{{
sage: a,y,z=var('a,y,z')
sage: (x*sin(sin(x + y + 2*a))).substitute_function(sin,cos)
x*cos(cos(2*a + x + y))
sage: (x*sin(sin(x + y + 2*a))).substitute_function(sin,z)
/home/ralf/sage/local/lib/python2.7/site-
packages/sage/symbolic/expression_conversions.py:223: DeprecationWarning:
Substitution using function-call syntax and unnamed arguments is
deprecated and will be removed from a future release of Sage; you can use
named arguments instead, like EXPR(x=..., y=...)
See http://trac.sagemath.org/5930 for details.
return self.composition(ex, operator)
(2*a + x + y)*x
}}}
The method would be expected to give a meaningful error when seeing a
variable as second argument.
--
Ticket URL: <http://trac.sagemath.org/ticket/17757>
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.