It doesn't work with the function I'm using. Although, "print Moment (sln, mu)", where mu is the variable, yields a real numeric result in what appears to be the entire range of mu.
This is the plot command: plot(Moment(sln, mu), mu, 0, 1) The error message points at the return statement of the Moment- function: return sln[M].n(4) Later on the error message points at some internal approximation command trying to return a complex result. I have no idea of how to interpret this. Appreciate all suggestions. /Peter On Feb 21, 3:29 pm, David Joyner <wdjoy...@gmail.com> wrote: > This is one way: > > sage: x,y = var("x,y") > sage: f = x^2+y^2 > sage: plot(f(x,3),x,-1,1) > > On Sat, Feb 21, 2009 at 9:22 AM, hpon <peter.norli...@gmail.com> wrote: > > > Hello, > > > I have created a function F = F(x, const). I would like to create a > > 2D-plot of F in some range of x. What should the syntax look like? > > > Regards, > > Peter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---