Re: [sage-support] Re: bug in numerical evaluation of symbolic expression

2016-04-26 Thread Vincent Delecroix
On 25/04/16 17:49, William Stein wrote: On Mon, Apr 25, 2016 at 12:06 PM, Volker Braun wrote: Presumable its because the RR nan doesn't correctly convert to the SR nan: sage: NaN.is_zero() False sage: SR(RR('nan')).is_zero() True Related and

Re: [sage-support] Re: bug in numerical evaluation of symbolic expression

2016-04-25 Thread William Stein
On Mon, Apr 25, 2016 at 12:06 PM, Volker Braun wrote: > Presumable its because the RR nan doesn't correctly convert to the SR nan: > > sage: NaN.is_zero() > False > sage: SR(RR('nan')).is_zero() > True Related and confusing/wrong/inconsistent: sage: RR('nan').is_zero()

[sage-support] Re: bug in numerical evaluation of symbolic expression

2016-04-25 Thread Volker Braun
Presumable its because the RR nan doesn't correctly convert to the SR nan: sage: NaN.is_zero() False sage: SR(RR('nan')).is_zero() True On Monday, April 25, 2016 at 7:40:39 PM UTC+2, William wrote: > > For a problem set I'm making today, I made up a random symbolic function, > then evaluated