#7876: symbolic expression displayed wrong
-----------------------------+----------------------------------------------
Reporter: iandrus | Owner: burcin
Type: defect | Status: positive_review
Priority: blocker | Milestone: sage-4.3.2
Component: symbolics | Keywords: pynac
Author: Burcin Erocal | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Changes (by rossk):
* status: needs_review => positive_review
Comment:
The following now displays correctly using Sage Version 4.3.1 (Release
Date: 2010-01-20)
with pynac 0.1.11 (and also without any patches mentioned in this ticket)
{{{
sage: f=(1/2-1/2*I )*sqrt(2)
sage: f
(-1/2*I + 1/2)*sqrt(2)
sage: f-1/2*sqrt(2)
-1/2*I*sqrt(2)
sage: f+1/2*sqrt(2)
(-1/2*I + 1)*sqrt(2)
sage: f-I*1/2*sqrt(2)
(-I + 1/2)*sqrt(2)
sage: f-I/2*sqrt(2)
(-I + 1/2)*sqrt(2)
sage: f+I/2*sqrt(2)
1/2*sqrt(2)
sage: latex(f)
\left(-\frac{1}{2} I + \frac{1}{2}\right) \, \sqrt{2}
sage: latex(f+I/2*sqrt(2))
\frac{1}{2} \, \sqrt{2}
sage: (1-I)^2
-2*I
sage: (1+I)^2
2*I
sage: (1+I*sqrt(2))^2
(I*sqrt(2) + 1)^2
sage: expand((1+I*sqrt(2))^2)
2*I*sqrt(2) - 1
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7876#comment:5>
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.