@InternetCitizen2@lemmy.world to Lemmy Shitpost@lemmy.world • 1 month agoVirgin Physicistslemmy.worldimagemessage-square111fedilinkarrow-up1718arrow-down17 cross-posted to: science_memes@mander.xyz
arrow-up1711arrow-down1imageVirgin Physicistslemmy.world@InternetCitizen2@lemmy.world to Lemmy Shitpost@lemmy.world • 1 month agomessage-square111fedilink cross-posted to: science_memes@mander.xyz
minus-square@InternetCitizen2@lemmy.worldOPlinkfedilink6•1 month agoIn case anyone wondering factorial is n! = n * n-1 * n-2 * … * 3 * 2 * 1
minus-square@weker01@sh.itjust.workslinkfedilink1•1 month 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-square@InternetCitizen2@lemmy.worldOPlinkfedilink1•1 month agoI wrote it correctly. It is the definition of a factorial.
minus-square@weker01@sh.itjust.workslinkfedilink1•1 month 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-square@InternetCitizen2@lemmy.worldOPlinkfedilink2•edit-21 month agoWhat I wrote and the context it makes sense. E: ohh yeah I see
minus-square@weker01@sh.itjust.workslinkfedilink1•1 month 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