Hi all! Help please, I can not understand what is wrong with this:
f(x)=x; def g(x): if (x>=0): return f(x) else: return f(-x); show(plot(g(x),(x,-1,1))) #form1 show(plot(g,-1,1)) #form2 same thing: https://www.sagenb.org/home/pub/1770/ the two graphics must be same, because it is the same functions. so, why form 2 gives wrong result? P.S. I do not want to plot abs(x) function, that is only for example. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---