On Sat, Jan 31, 2009 at 7:08 AM, David Joyner <[email protected]> wrote:
>
> I don't know anything about your economics problem but when I typed
>
> cp=contour_plot(utility,(x,0,24),(y,
> 0,24),fill=False,cmap='cool',contours=(100,1000,2048,2700,3500),plot_points=200)
>
> instead, I definitely got a different plot. Can you try that (or even
> with a higher value)
> and see if it is correct?
>
Yes, this definitely works (I came to the same conclusion as you):
x,y=var('x,y')
utility=y*x^2
budget = 24-x
cp=contour_plot(utility,(x,0,24),(y,0,24),
fill=False,cmap='cool',
contours=(100,1000,2048,2700,3500),plot_points=200)
bp=plot(budget,(x,0,24),color='red')
cp+bp + point((16,8))
I think we should change the default plot_points parameter. It was
very low, I think, because evaluation of symbolic expressions used to
be slow -- now it's extremely fast -- so we should increase the
default number of points to at least 200. See trac #5145:
http://trac.sagemath.org/sage_trac/ticket/5145
William
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---