[sage-support] Re: plot3d can't handle log(0)

2009-11-17 Thread Jason Grout
William Cauchois wrote: > On Tue, Nov 17, 2009 at 6:08 AM, kcrisman > wrote: > > > Would all these ideas for testing deal with the triangulation issue, > Bill? Your original post seems to imply this. > > - kcrisman > > > I thought that, during triangula

Re: [sage-support] Re: plot3d can't handle log(0)

2009-11-17 Thread William Cauchois
On Tue, Nov 17, 2009 at 6:08 AM, kcrisman wrote: > > Would all these ideas for testing deal with the triangulation issue, > Bill? Your original post seems to imply this. > > - kcrisman I thought that, during triangulation, we could test for NaN values and delete those faces. However, I see now

[sage-support] Re: plot3d can't handle log(0)

2009-11-17 Thread kcrisman
Would all these ideas for testing deal with the triangulation issue, Bill? Your original post seems to imply this. - kcrisman On Nov 17, 8:01 am, Francois Maltey wrote: > Hello, > > >> As a first pass, just surround the evaluation with a try/except, as > >> you would in Python. Perhaps you cou

[sage-support] Re: plot3d can't handle log(0)

2009-11-17 Thread Francois Maltey
Hello, >> As a first pass, just surround the evaluation with a try/except, as >> you would in Python. Perhaps you could set the value in the except >> clause to nan. >> For the 2d-plot, I test if a result is a real number by theses tests : # # The real number without infty nor NaN=NotANumbe

[sage-support] Re: plot3d can't handle log(0)

2009-11-16 Thread Robert Bradshaw
On Nov 16, 2009, at 7:23 PM, William Cauchois wrote: > On Nov 16, 10:59 am, Robert Bradshaw > wrote: > >> As a first pass, just surround the evaluation with a try/except, as >> you would in Python. Perhaps you could set the value in the except >> clause to nan. >> >> - Robert > > Is there a cons

[sage-support] Re: plot3d can't handle log(0)

2009-11-16 Thread William Cauchois
On Nov 16, 10:59 am, Robert Bradshaw wrote: > As a first pass, just surround the evaluation with a try/except, as > you would in Python. Perhaps you could set the value in the except > clause to nan. > > - Robert Is there a constant for NaN? That's kind of what I was asking in my post. --~--~--

[sage-support] Re: plot3d can't handle log(0)

2009-11-16 Thread Robert Bradshaw
On Nov 10, 2009, at 12:34 PM, kcrisman wrote: > In 4.2.1.alpha0: > > sage: f(x,y)=ln(x) > sage: P=plot3d(f,(x,0,1),(y,0,1)) > sage: P > ERROR: An unexpected error occurred while tokenizing input > The following traceback may be corrupted or invalid > The error message is: ('EOF in multi-line stat

[sage-support] Re: plot3d can't handle log(0)

2009-11-16 Thread kcrisman
> relatively simple, but when you remove a point in a 3D plot you could > be affecting several faces. There is also the matter that evaluation > is separate from triangulation, so you have to find out how to > communicate the fact that a vertex doesn't exist between the two > stages (since Paramet

[sage-support] Re: plot3d can't handle log(0)

2009-11-15 Thread William Cauchois
I was looking into this issue this afternoon, and its more complicated than it might appear at first. Removing a point in a 2D plot is relatively simple, but when you remove a point in a 3D plot you could be affecting several faces. There is also the matter that evaluation is separate from triangu