Recursive Factorial Function Limits
Samuel Pearce-Davies
Nov 27 2015 | 8:36 pm
Hi all,
Am trying to work with irrational numbers in Max, specifically the binomial expansions used to approach their 'true' value. For this I needed to be able to work with Factorials, and couldn't find anything on the forums so wrote my own recursive function.
Max Patcher
In Max, select New From Clipboard.
In Max, select New From Clipboard.
Here it is:
As you can tell, it works fine for all values (apart from 0) up to 12, where the limits of the number boxes start to affect the calculation (print the output of the * . . object to see what it's doing). I'm unfamiliar with many aspects of Max, and as such don't know of any object or attribute for number boxes that can allocate more memory to handle these large numbers.
Can anyone help me out? It's not a matter of life and death as I wouldn't really need numbers that large in my current calculations, but for the future or purely for the sake of completion, it would be good to know my options/alternatives.
Thanks.