hello

I expected the code below to plot a diagonal line from 0,0 to 2,2 then
a horizontal line from 2,2

but instead it plots a horizontal line starting at 0,2

x = var('x')

def splitTest(n):

    if n < 2:
        return n
    else:
        return 2

plot(splitTest(x),0,4)


splitTest(1) returns 1 as expected

can anyone explain this to me?
cheers

Mathew
cheers

mathew
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to