Ticket #7122 (closed defect: fixed)
plot real part and imaginary part of function sqrt.
|Reported by:||fmaltey||Owned by:||was|
|Report Upstream:||Reviewers:||Karl-Dieter Crisman|
|Authors:||Mike Hansen||Merged in:||sage-4.2.alpha1|
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 :
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.
- Summary changed from plot real part and imaginary part of function sqrt. to [with patch, needs review] plot real part and imaginary part of function sqrt.
- Status changed from positive_review to closed
- Reviewers set to Karl-Dieter Crisman
- Resolution set to fixed
- Merged in set to sage-4.2.alpha1
- Summary changed from [with patch, needs review] plot real part and imaginary part of function sqrt. to plot real part and imaginary part of function sqrt.