On Sep 12, 3:49 pm, Jason Grout <[email protected]> wrote:
> William Stein wrote:
> > On Sat, Sep 12, 2009 at 12:05 PM, Andi Walz
> > <[email protected]> wrote:
> >> Hi,
>
> >> I'm just new to SAGE and now trying to make a 2D-plot of the following
> >> kind
>
> >> plot( abs( exp( i*x ) ) )
>
> >> but I don't get it working. I know that this kind of plot will be very
> >> boring, but that's just one try on my way further.
> >> The problem is, that everytime it ends up with an error message like
>
> >> Traceback (most recent call last):
> >> ...
> >> TypeError: float() argument must be a string or a number
>
> >> I was now sitting for hours and I have no idea how to fix it. Is there
> >> anyone to help me?
> >> Thanks!
> >> Andi
>
> > You've discovered *two* bugs in plotting. A workaround for both bugs
> > is to do the following, which works:
>
> > sage: plot(lambda x: float(abs(exp(i*x))), xmin=1,xmax=2, ymin=0,ymax=1)
>
> > I've reported these bugs here:
>
> >http://trac.sagemath.org/sage_trac/ticket/6926
I really hope this gets fixed. As I have said in other threads on
exactly this same bug, I would be happy to put in some time on this if
someone could give me guidance (on- or off-list) on how to use
fast_callable or whatever is getting invoked to avoid this.
- kcrisman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---