New extension: Combinatorics #2171
mcnole25
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a basic extension I made to calculate factorials, n choose r, & other stuff like that.
combinatorics.txt
Blocks:
factorial of n: Calculates n factorial: 1 * 2 * 3 * 4 * 5 * ... * n
n choose r permutations: Number of ways to choose elements in a set where order matters
n choose r combinations: Number of ways to choose elements in a set where order DOESN'T matter
n choose r with repeats: Number of ways to choose elements in a set where order DOESN'T matter, but repeated elements are allowed
Repeated permutations are excluded, because the formula is simply n**r
It's been about a year since I used Scratch or Turbowarp, or even made an extension. Enjoy.
NOTE: This extension is in beta, inputs break after 170, I plan to polish this in the future
Beta Was this translation helpful? Give feedback.
All reactions