Can you take the function you are trying to plot, reduce it to the simplest expression which will reproduce the same error and post it? Can you also include the OS and version of Sage?
On Sat, Feb 21, 2009 at 10:02 AM, hpon <[email protected]> wrote: > > 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 <[email protected]> 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 <[email protected]> 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 [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 -~----------~----~----~----~------~----~------~--~---
