[sage-devel] Re: User friendly output for divergant integrals/sum

2014-01-09 Thread Gregory Bard
This seems then to be a consensus opinion. Who knows how to code that, where to put the code, etc...? ---Greg On Tuesday, January 7, 2014 3:07:53 AM UTC-6, Simon King wrote: > > Hi, > > On 2014-01-07, maldun > wrote: > > One could also go further and raise a PlusInfinitiyException or a > > Min

[sage-devel] Re: User friendly output for divergant integrals/sum

2014-01-07 Thread Simon King
Hi, On 2014-01-07, maldun wrote: > One could also go further and raise a PlusInfinitiyException or a > MinusInfinityException and handle them correctly. Exceptions can carry attributes. Hence, perhaps one would not create a separate exception for each possible type of divergence, but only one e

[sage-devel] Re: User friendly output for divergant integrals/sum

2014-01-07 Thread maldun
+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

[sage-devel] Re: User friendly output for divergant integrals/sum

2014-01-06 Thread Volker Braun
+1 to more fine-grained exceptions On Monday, January 6, 2014 6:39:56 AM UTC-10, 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 re

[sage-devel] Re: User friendly output for divergant integrals/sum

2014-01-06 Thread Gregory Bard
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. Howe