#4838: implement plotting of complex numbers
---------------------------+------------------------------------------------
   Reporter:  AlexGhitza   |       Owner:  was                
       Type:  enhancement  |      Status:  positive_review    
   Priority:  minor        |   Milestone:  sage-4.3.2         
  Component:  graphics     |    Keywords:  plot complex number
     Author:  vdelecroix   |    Upstream:  N/A                
   Reviewer:               |      Merged:                     
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by vdelecroix):

 > This currently doesnt work (because not part of this ticket)
 > {{{
 > [CC(cos(theta)+I*sin(theta)) for theta in srange(0, 2*pi, pi/4)].plot()
 > }}}
 > (its a natural extension of the idea in this ticket, but will have to be
 a new ticket if anyone thinks its worth implementing)

 BEWARE: It's not a good idea to implement this (and not even possible). To
 be able to do this the .plot() method have to be coded inside the list
 object which is a python object.

 But remains the question on how do the following work ?
 {{{
 sage: z0 = CC(2,3)
 sage: plot(z0)   # works with this patch
 sage: z1 = 2 + 3*I
 sage: plot(z1)  # does not work because z1 is in SR and not in CC
 }}}

 Most of the time users have to think about using `point` more than `plot`
 for complex numbers... and I'm not sure about the usefulness of this
 ticket...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4838#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.

Reply via email to