On Dec 31, 11:21 am, Christophe BAL <[email protected]> wrote:
> Hello,
> the following command has a very bad output.
>
> plot(sqrt((x - 2)*(x - 1)), (-4, 5)) + plot(-sqrt((x - 2)*(x - 1)), (-4, 5))
>
> How can I ameliorate this ?
>
> Best regards.
> Christophe

Your function is comlex-valued on the interval (1,2)
so the interval should be excluded

sage: plot(sqrt((x - 2)*(x - 1)), (-4,
5),exclude=[1..2],plot_points=1000) + plot(-sqrt((x - 2)*(x - 1)),
(-4, 5),exclude=[1..2],plot_points=3000)

(other option - construct the graph from 4 pieces)

-- 
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-support
URL: http://www.sagemath.org

Reply via email to