+1

One could also go further and raise a PlusInfinitiyException or a 
MinusInfinityException and handle them correctly.

On Monday, January 6, 2014 5:39:56 PM UTC+1, Gregory Bard wrote:
>
> Perhaps we could get the best of both worlds?
>
> We could throw a "divergent integral/sum exception" (that can be two 
> exceptions or one, depending
> on how you look at what an integral really is...)
>
> This way, the calculus student would see the words "divergent integral" 
> and know what it means.
>
> However, the high performance programmer can catch the exception and do... 
> something... with it.
>
> Thoughts?
> ---Greg
>
> On Saturday, January 4, 2014 12:12:58 AM UTC-6, Vibhav Pant wrote:
>>
>> Sage currently handles divergant integrals/sums by raising a ValueError, 
>> wouldn't it be nice if a more user friendly output (like infinity or 
>> printing "divergant integral") could be used instead of raising an 
>> exception?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to