On Sat, Jan 2, 2010 at 10:39 AM, Sterling <sterlin...@gmail.com> wrote: > In the notebook under sage 4.2.1 this code seems to work OK, but under > sage 4.3 I get an error. Is there some syntax change I overlooked? > > b = plot(sqrt(3)*x,(0,4)) > f(z) = 4*log(z^3)-2*log(z^3-8) > g = lambda x,y: imag(f(x+y*I)) if y < sqrt(3)*x else float('nan') > a = contour_plot(g,(x,0,4),(y,0,4),fill=False,contours=30) > c = a + b > c > > Thanks. This isn't imperative by any means. I was just going through > some old notebooks from last semester.
Thanks. This has nothing to do with the Sage notebook. It comes from some change in symbolic manipulation: sage: b = plot(sqrt(3)*x,(0,4)) sage: f(z) = 4*log(z^3)-2*log(z^3-8) sage: g = lambda x,y: imag(f(x+y*I)) if y < sqrt(3)*x else float('nan') sage: var('x,y') sage: time a = contour_plot(g,(x,0,4),(y,0,4),fill=False,contours=30) boom... William -- 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 URL: http://www.sagemath.org