InternetCitizen2@lemmy.world to Lemmy Shitpost@lemmy.world · 4 days agoVirgin Physicistslemmy.worldimagemessage-square111fedilinkarrow-up1871arrow-down16
arrow-up1865arrow-down1imageVirgin Physicistslemmy.worldInternetCitizen2@lemmy.world to Lemmy Shitpost@lemmy.world · 4 days agomessage-square111fedilink
minus-squareweker01@sh.itjust.workslinkfedilinkarrow-up1·3 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·3 days agoI wrote it correctly. It is the definition of a factorial.
minus-squareweker01@sh.itjust.workslinkfedilinkarrow-up1·3 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-23 days agoWhat I wrote and the context it makes sense. E: ohh yeah I see
minus-squareweker01@sh.itjust.workslinkfedilinkarrow-up1·3 days agoYea, reading my message back I was unnecessarily harsh. But my math checks out. Sorry, I had a bad day…
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