#10567: Parentheses break implicit_multiplication
------------------------------+---------------------------------------------
Reporter: eviatarbach | Owner: was
Type: defect | Status: new
Priority: major | Milestone:
Component: user interface | Keywords:
Author: Eviatar Bach | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Parentheses (brackets) seem to break implicit_multiplication, but only in
some cases. This seems to be when a non-bracketed factor is followed by a
bracketed. It seems to be a problem with the preparser. Here are a few
examples:
{{{
sage: implicit_multiplication(True)
Working examples:
sage: (x+3)(x+4)
(x + 3)*(x + 4)
sage: (3) x
3*x
sage: 3(x+3)
3*x + 9
Non-working examples:
sage: x(x+3)
x + 3
sage: x (3)
3
Preparser does not work:
sage: preparse('x(x+3)')
'x(x+Integer(3))'
}}}
This is quite a major issue for implicit_multiplication.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10567>
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.