You're viewing a single thread.
I don't get it, why would 2! = 2 ? Can a mathematician explain it to me ?
16 0 Reply2 != 2 is the statement that 2 is not equal to 2.
2! = 2 is the equation that two(factorial) equals 2
48 0 ReplyDamn, I'm so dumb it hurts
20 1 Replyme too but you were brave enough to ask
10 0 Reply
2 != 2
But what if it's true? Perhaps the 2 on the left is integer and the right one is character.
7 0 ReplyOr it's a language where each number is a different instance, and
!=
compares addresses.6 0 Reply
The second part is the one I don't understand. 4 doesn't equal 2
2 0 ReplyFactorial is not the same as exponentiation.
8 0 Reply
"!" in math is the factorial symbol, and 2 factorial is just 2 times 1, which is 2.
12 0 ReplyWhereas != is commonly used in programming as "not equal to".
So the mathematician see two factorial equals two, which is true.
The programmer sees two is not equal to two, which is not true.
2 0 Reply
factorial
1 1 Reply