#7122: plot real part and imaginary part of function sqrt.
----------------------+-----------------------------------------------------
 Reporter:  fmaltey   |       Owner:  was       
     Type:  defect    |      Status:  new       
 Priority:  major     |   Milestone:  sage-4.1.2
Component:  graphics  |    Keywords:            
 Reviewer:            |      Author:            
   Merged:            |  
----------------------+-----------------------------------------------------
 I try to plot a half-circle with the

 {{{
 var('m')
 parametric_plot ([real(m+sqrt(1-m^2)), imaginary(m+sqrt(1-m^2))],m,-1,1)
 }}}

 and get a severe error.

 Theses plots are right :
 {{{
 plot([sqrt(m2+1)],m,0,6)
 plot(real (sqrt(m2+1)),m,0,6)
 }}}

 But this one with AND real(...) or imaginary(...) AND list AND sqrt(...)
 fails :

 {{{
 plot([real (sqrt(m2+1))],m,0,6)
 }}}

 On devel-support kcrisman proposes :


 After looking at the traceback about an extra argument, I have a
 sneaky suspicion this is because sqrt takes an extra keyword prec,
 which perhaps is getting caught up in fast_float somehow.  What's
 interesting is that the problem also only shows up for a list, so
 again fast_float([]) is what's getting concerned.  Those who know how
 fast_float and the expression trees work will hopefully check this out as
 they get an opportunity.

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