Enter a number (that's not negative) and it will approximate the factorial of n. https://www.desmos.com/calculator/yobpjxnqme Red is my new approximation (this one) Green is actual positive factorial Blue is my old approximation happe pi day :)
My Factorial with negative numbers in Scratch is broken because it gives a number from 3 to the square root of pi because it uses even roots which for negative numbers give complex numbers (numbers that involve the imaginary number 'i') which is NaN in Scratch. Because 'NaN' is classified as 'text', Scratch treats it like 0, and does the equation like nothing is wrong. Note that for n>12, this approximation will be less than actual n! so if you intend on using this, just remember