On Tue, 01 Sep 2009 at 11:42PM -0700, Robert Bradshaw wrote:
> If we support the ! notation, we should either have x!! == (x!)! or,
> preferably, x!!..! be the multi factorial (not limiting ourselves to
> single and double).

I study combinatorics, and I'm fine with *not* supporting ! notation.
Writing "factorial(x)" is obvious and unambiguous. If you want something
shorter, you can do "f = factorial". Then the mysterious and ambiguous
examples above turn into something obvious: f(f(5)) or whatever. We
already have "multifactorial" support: (5).multifactorial(2) equals 5 *
3 * 1, and so on.

I don't see anyone strongly demanding ! notation, so I say we drop the
idea. We have factorial() and .multifactorial(), they work perfectly
well, and the syntax for using them is the same as in the rest of Sage.

Dan

-- 
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to