InternetCitizen2@lemmy.world to Lemmy Shitpost@lemmy.world · 3 days agoVirgin Physicistslemmy.worldimagemessage-square111fedilinkarrow-up1869arrow-down16
arrow-up1863arrow-down1imageVirgin Physicistslemmy.worldInternetCitizen2@lemmy.world to Lemmy Shitpost@lemmy.world · 3 days agomessage-square111fedilink
minus-squareInternetCitizen2@lemmy.worldOPlinkfedilinkarrow-up6·3 days agoIn case anyone wondering factorial is n! = n * n-1 * n-2 * … * 3 * 2 * 1
minus-squareweker01@sh.itjust.workslinkfedilinkarrow-up1·2 days agoErm. In what world do you live that the precedent in your expression is right? In all languages and countries I know multiplication binds more strongly than addition. So what you wrote would be n^2 - n - 2n - 3n…
minus-squareInternetCitizen2@lemmy.worldOPlinkfedilinkarrow-up1·2 days agoI wrote it correctly. It is the definition of a factorial.
minus-squareweker01@sh.itjust.workslinkfedilinkarrow-up1·2 days agoNo, correctly it would be n * (n-1) * (n-2) * … * 3 * 2* 1 Or the actual recursive definition 1! = 1 n! = (n-1)! * n
minus-squareInternetCitizen2@lemmy.worldOPlinkfedilinkarrow-up2·edit-22 days agoWhat I wrote and the context it makes sense. E: ohh yeah I see
minus-squareweker01@sh.itjust.workslinkfedilinkarrow-up1·2 days agoYea, reading my message back I was unnecessarily harsh. But my math checks out. Sorry, I had a bad day…
In case anyone wondering factorial is
n! = n * n-1 * n-2 * … * 3 * 2 * 1
Erm. In what world do you live that the precedent in your expression is right?
In all languages and countries I know multiplication binds more strongly than addition. So what you wrote would be
n^2 - n - 2n - 3n…
I wrote it correctly. It is the definition of a factorial.
No, correctly it would be n * (n-1) * (n-2) * … * 3 * 2* 1
Or the actual recursive definition
1! = 1
n! = (n-1)! * n
What I wrote and the context it makes sense.
E: ohh yeah I see
Yea, reading my message back I was unnecessarily harsh. But my math checks out.
Sorry, I had a bad day…
No worries. It happens