#4630: [already fixed?] bug in functions real() and imag().
------------------------------+---------------------------------------------
 Reporter:  ggrafendorfer     |       Owner:  somebody  
     Type:  defect            |      Status:  new       
 Priority:  major             |   Milestone:  sage-4.0.1
Component:  basic arithmetic  |    Keywords:            
------------------------------+---------------------------------------------

Comment(by AlexGhitza):

 This appears to be fixed in sage-4.0.1.alpha0:

 {{{
 ----------------------------------------------------------------------
 | Sage Version 4.0.1.alpha0, Release Date: 2009-05-31                |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: a = exp(I*0.2*pi); a; type(a); real(a); real(a).n()
 e^(0.200000000000000*I*pi)
 <type 'sage.symbolic.expression.Expression'>
 cos(0.200000000000000*pi)
 0.809016994374947
 sage: b = exp(CDF(I)*0.2*pi); b; type(b); real(b); real(b).n()
 e^(0.2*I*pi)
 <type 'sage.symbolic.expression.Expression'>
 cos(0.2*pi)
 0.809016994375
 sage: a = exp(I*0.2*pi); a; type(a); imag(a); imag(a).n()
 e^(0.200000000000000*I*pi)
 <type 'sage.symbolic.expression.Expression'>
 sin(0.200000000000000*pi)
 0.587785252292473
 sage: b = exp(CDF(I)*0.2*pi); b; type(b); imag(b); imag(b).n()
 e^(0.2*I*pi)
 <type 'sage.symbolic.expression.Expression'>
 sin(0.2*pi)
 0.587785252292
 sage: n(exp(CDF(I)*0.2*pi))
 0.809016994375 + 0.587785252292*I
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4630#comment:1>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to