Forums
Forums / Plugin: Calculated Fields Form / Facultary n!
(@digiblogger)
6 years, 11 months ago
Assuming you want to know: How many different combinations will i get, when I choose k elements from an amount of n total elements.
the formular is:
n!/(n-k)!*k!
I am looking for a way to translate this into CFF Pro 🙂 Thanks.
I already wrote an email 🙂 I really think I need help to implement
did on my own.
For all:
Insert a html field with this code:
<script> function factorial(n) { return (n != 1) ? n * factorial(n - 1) : 1; } </script>
Not you can use factorial(YourFieldname)
The topic ‘Facultary n!’ is closed to new replies.