On Jun 16, 11:24 am, Tom Coates <t.coa...@imperial.ac.uk> wrote: > A) factorial(x) should raise an error; > > B) factorial(x) should return gamma(x+1).
More generally, the question is what to do with something which doesn't make sense according to whatever rules have been established so far. I claim the "mathematical" attitude is to let it stand; then someone who has greater imagination can figure out what to do with it. Barfing out an error makes it pretty much impossible to reinterpret the expression in an interesting way. When you try to prevent stupidity, you are also preventing cleverness, as the Usenix say. FWIW Robert Dodier -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org