Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
@-MFra- wrote:
I have the impression that you are making confusion. The double factorial is not the factorial of the factorial of n. On Wiki ... there is a broad description.
The number that you show fact2(3) evaluating to is actually (4!)! (620448401733239000000000). (10!)! is monstrously long.
Do you have anything else defined earlier in your worksheet that might affect the result?
Cheers,
Stuart
Works for me in M15:
If I try fact2(10)= I get the error message "This variable is not defined". (It's symbolic only)
Alan
I also use M15.
Appears to be wrong, see also:https://www.maplesoft.com/support/help/Maple/view.aspx?path=factorial
Success!
Luc
I have the impression that you are making confusion. The double factorial is not the factorial of the factorial of n. On Wiki ... there is a broad description.
@-MFra- wrote:
I have the impression that you are making confusion. The double factorial is not the factorial of the factorial of n. On Wiki ... there is a broad description.
The number that you show fact2(3) evaluating to is actually (4!)! (620448401733239000000000). (10!)! is monstrously long.
Do you have anything else defined earlier in your worksheet that might affect the result?
Cheers,
Stuart
there must be interference with something defined in a large reference file, which I am using. In fact, if I use fact2 in a new file without a reference file, everything is fine.
I found the problem. In the definition of the new operator !!, there was a redefinition of fact2.
Thank you