#11539: Sage incorrectly interprets factorials in equations.
-------------------------+--------------------------------------------------
Reporter: mhansen | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone: sage-4.7.2
Component: symbolics | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-------------------------+--------------------------------------------------
Comment(by kcrisman):
Replying to [comment:2 mhansen]:
> If you wanted to fix this on the Sage side of things, you'd need to make
sage.misc.parser.Parser accept "#" as an inequality symbol. This is
because "x!=0" is ambiguous.
Right. But I was anticipating having the Sage translator in calculus.py
turn "!" into " ! " or something like that.
{{{
sage: x ! = 0
------------------------------------------------------------
File "<ipython console>", line 1
x ! = Integer(0)
^
SyntaxError: invalid syntax
}}}
since in Maxima the exclamation point only means this. Then one could
somehow smartly turn "foo !" into "factorial(foo)", though as I say above
it might be tricky determining what foo is.
> I posted the fix on the Maxima side since that was a change that the
user could make to a running Sage and not have to patch it, etc.
Yes, for ask.sagemath.org that is a good fix. I'm just not sure I want to
make such a change in Maxima - mightn't this change some internal behavior
there? Plus, we try not to fix upstream if it isn't really a bug. More
philosophical than practical, I agree :)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11539#comment:4>
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.