Plot is maybe too good :)

24 views
Skip to first unread message

Rolandb

unread,
Nov 3, 2013, 4:48:26 AM11/3/13
to sage-s...@googlegroups.com
Hi,

The following works, but should '==' work?

var('a,b')
b=5
plot(a^2-b==3,a,1,7)

Roland
 
 
 

Christophe Bal

unread,
Nov 3, 2013, 5:09:41 AM11/3/13
to sage-s...@googlegroups.com
Hello,
I think also that there is a problem.

More simply, something like 


--------------------------
var('a')
plot(a^2==3,a,1,7)
--------------------------

should work like

-----------------------------------
var('a')
plot(bool(a^2==3),a,1,7)
-----------------------------------

But the plot function doesn't support booleans.
Just try this. 

--------------------------
var('a')
plot(a^2<=3,a,1,7)
--------------------------

Best regards.
Christophe. 
Reply all
Reply to author
Forward
0 new messages