#9458: Bug with variable names in solve()
-------------------------+--------------------------------------------------
Reporter: tastalian | Owner: AlexGhitza
Type: defect | Status: new
Priority: major | Milestone: sage-4.5
Component: algebra | Keywords: var solve name factorial
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------+--------------------------------------------------
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.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9458>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.