Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calculus -- substitution of a dict for SymbolicFunctionEvaluation is broken (but **kwds works) #2933

Closed
williamstein opened this issue Apr 15, 2008 · 3 comments

Comments

@williamstein
Copy link
Contributor

Substitution with a dictionary as input is broken. Notice below in the
third input that the dictionary is ignored?!

sage: function('f',x)
f(x)
sage: (f(x)).substitute(f=log)
log(x)
sage: (f(x)).substitute({f:log})
f(x)
sage: type(f(x))
<class 'sage.calculus.calculus.SymbolicFunctionEvaluation'>
sage: (x^3 + 1).substitute(x=5)
126
sage: (x^3 + 1).substitute({x:5})
126

Component: calculus

Issue created by migration from https://trac.sagemath.org/ticket/2933

@williamstein williamstein added this to the sage-3.0 milestone Apr 15, 2008
@williamstein williamstein self-assigned this Apr 15, 2008
@mwhansen
Copy link
Contributor

comment:1

Attachment: 2933.patch.gz

@ncalexan
Copy link
Mannequin

ncalexan mannequin commented Apr 17, 2008

comment:2

I find the business with isinstance(str) strange, but it looks right and the doctests assert the correct behaviour.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Apr 17, 2008

comment:3

Merged in Sage 3.0.alpha6

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Apr 17, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants