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

substitution in symbolic function fails with latex_name #15733

Open
dkrenn opened this issue Jan 26, 2014 · 2 comments
Open

substitution in symbolic function fails with latex_name #15733

dkrenn opened this issue Jan 26, 2014 · 2 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Jan 26, 2014

The following substitution does not work:

sage: function('f', latex_name = 'blub')
f
sage: eq = solve((ln(f(x))==x).diff(x), f(x))[0]
sage: eq
f(x) == D[0](f)(x)
sage: eq.subs(f(x) == 42)
f(x) == D[0](f)(x)

Note that

sage: bool(eq.lhs() == f(x))
True
sage: id(eq.lhs()), id(f(x))
(119698064, 119698064)

When removing latex_name, everything works fine:

sage: function('f')
f
sage: eq = solve((ln(f(x))==x).diff(x), f(x))[0]
sage: eq.subs(f(x) == 42)
42 == D[0](f)(x)

Component: symbolics

Keywords: substitute, function, solve, latex_name

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

@dkrenn dkrenn added this to the sage-6.1 milestone Jan 26, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@dkrenn
Copy link
Contributor Author

dkrenn commented Apr 16, 2015

comment:4

Still there in 6.6.

@rwst
Copy link

rwst commented Feb 22, 2017

comment:5

Note that #6480 will change the r.h.s. too.

@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
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

3 participants