Opened 7 years ago
Last modified 4 years ago
#15733 new defect
substitution in symbolic function fails with latex_name
Reported by: | dkrenn | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-6.4 |
Component: | symbolics | Keywords: | substitute, function, solve, latex_name |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
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)
Change History (5)
comment:1 Changed 7 years ago by
- Milestone changed from sage-6.1 to sage-6.2
comment:2 Changed 7 years ago by
- Milestone changed from sage-6.2 to sage-6.3
comment:3 Changed 6 years ago by
- Milestone changed from sage-6.3 to sage-6.4
comment:4 Changed 6 years ago by
comment:5 Changed 4 years ago by
Note that #6480 will change the r.h.s. too.
Note: See
TracTickets for help on using
tickets.
Still there in 6.6.