Ticket #9458 (closed defect: duplicate)
Bug with variable names in solve()
| Reported by: | tastalian | Owned by: | AlexGhitza |
|---|---|---|---|
| Priority: | major | Milestone: | sage-duplicate/invalid/wontfix |
| Component: | algebra | Keywords: | var solve name factorial |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | |
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
Some variable names yield strange behavior with the solve() function. Here is an example:
----------------------------------------------------------------------
| Sage Version 4.4.2, Release Date: 2010-05-19 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: var('d2 d3 x')
(d2, d3, x)
sage: solve((d2+d3)*x==1, x)
[x == factorial(2*k + 6*n)/(d3*factorial(2*k + 6*n) + factorial(k + 3*n - 1))]
These factorials are strange. They don't occur with other variable names, e.g.,
sage: var('y1 y2 x')
(y1, y2, x)
sage: solve((y1+y2)*x==1, x)
[x == (1/(y1 + y2))]
Documentation for solve() does not mention reserved variable names.
Change History
Note: See
TracTickets for help on using
tickets.

This is basically a duplicate of #8734.