Discuss Scratch
- Deerleg
-
1000+ posts
Add 'factorial' to list of formulas
I would like ‘factorial’ to be added to the list of formulas.
It could look like this:
It could look like this:
(That was supposed to be green.)
Last edited by Deerleg (March 21, 2014 01:17:17)
- jontmy00
-
500+ posts
Add 'factorial' to list of formulas
Support, and fixed! I would like ‘factorial’ to be added to the list of formulas.
It could look like this:(That was supposed to be green.)
- Firedrake969
-
1000+ posts
Add 'factorial' to list of formulas
Support, but how would it respond to negatives?
workaround:
Or something of the sort, haven't tested, but it should work relatively well.
workaround:
Or something of the sort, haven't tested, but it should work relatively well.
Last edited by Firedrake969 (March 26, 2014 22:43:55)
- ProdigyZeta7
-
1000+ posts
Add 'factorial' to list of formulas
Support. But like firedrake said, it wouldn't work with negatives or decimals, and it has a relatively easy workaround.
- DadOfMrLog
-
1000+ posts
Add 'factorial' to list of formulas
If you want to know how to generalise factorials to non-integer values (and negatives, and even complex), read up about the gamma function.
I guess a factorial operator would be nice for convenience, but I think it's a simple enough workaround that it's actually a good place for someone to start learning how to script such things. (Also there are other operators I think would be much more useful to have first, primarily for efficiency concerns - in particular “letters M to N of STRING”)…
I guess a factorial operator would be nice for convenience, but I think it's a simple enough workaround that it's actually a good place for someone to start learning how to script such things. (Also there are other operators I think would be much more useful to have first, primarily for efficiency concerns - in particular “letters M to N of STRING”)…
Last edited by DadOfMrLog (March 22, 2014 14:56:14)
- veryyoungguy
-
62 posts
Add 'factorial' to list of formulas
supportsupportsupportsupportsupportsupportsupportsupportsupportsupportsupportsupportsupport
- ExtremeLogic
-
500+ posts
Add 'factorial' to list of formulas
Support. And in the help section on the right (in the project editor), there should be something that explains what (a?) factorial is (for younger Scratchers), in case they don't know what it is (no one really cares to know this stuff when they're young).
- Deerleg
-
1000+ posts
Add 'factorial' to list of formulas
Then there should be one for everything else. Support. And in the help section on the right (in the project editor), there should be something that explains what (a?) factorial is (for younger Scratchers), in case they don't know what it is (no one really cares to know this stuff when they're young).
- drmcw
-
1000+ posts
Add 'factorial' to list of formulas
Could you explain why? I would like ‘factorial’ to be added to the list of formulas.
- dracae
-
1000+ posts
Add 'factorial' to list of formulas
No support.
First of all, it's not even that hard to implement this function my your self.
There are already many projects (and even a reply here) that show workarounds.
Second of all, this isn't very useful. I can't see how this could be used in art, or games, or animations. Who really needs this block?
Hopefully I don't sound TOO harsh :P, but again, I don't support.
First of all, it's not even that hard to implement this function my your self.
There are already many projects (and even a reply here) that show workarounds.
Second of all, this isn't very useful. I can't see how this could be used in art, or games, or animations. Who really needs this block?
Hopefully I don't sound TOO harsh :P, but again, I don't support.
- Deerleg
-
1000+ posts
Add 'factorial' to list of formulas
I need it for my calculator.Could you explain why? I would like ‘factorial’ to be added to the list of formulas.
- Firedrake969
-
1000+ posts
Add 'factorial' to list of formulas
Changed my mind. No support, since there's an easy workaround like said.
Last edited by Firedrake969 (March 26, 2014 22:43:38)
- AonymousGuy
-
1000+ posts
Add 'factorial' to list of formulas
*Sigh* I need it for my calculator.
What else would it be used for? If it's only for a calculator project, then that's kinda project-specific…
- TheLogFather
-
1000+ posts
Add 'factorial' to list of formulas
Support, but how would it respond to negatives?
workaround…
How very… quantum. No support, since there's an easy workaround like said.

Last edited by TheLogFather (March 26, 2014 22:38:11)
- Firedrake969
-
1000+ posts
Add 'factorial' to list of formulas
Oops. I changed my mind…. I should put thatSupport, but how would it respond to negatives?
workaround…How very… quantum. No support, since there's an easy workaround like said.

- drmcw
-
1000+ posts
Add 'factorial' to list of formulas
The reason I asked and others have picked up is that factorial is easy to write but with limited uses. The typical uses being probability and being able to boast that my calculator can calculate 70! but yours only does 69! kind of bragging.I need it for my calculator.Could you explain why? I would like ‘factorial’ to be added to the list of formulas.

- derpmeup
-
1000+ posts
Add 'factorial' to list of formulas
I would like ‘factorial’ to be added to the list of formulas.
It could look like this:(That was supposed to be green.)
Support! Even though you can make it with a custom block, it's easier to just have it there for you.
