You can login if you already have an account or register by clicking the button below.
Registering is free and all you need is a username and password. We never ask you for your e-mail.
[–]16082574?0 points
0 points
0 points
(+0|-0)
ago
Seriously, the nature of division is difficult to implement in CPU as a logical operation and needs numerical approximation because it is simply the question of X/Y = Z but to calculate Z the logic involved is really add Y to Y and count until >X then subtract 1 to find Z and do Y*Z - X to find remainder.
[–]16082342?0 points
0 points
0 points
(+0|-0)
ago
Commutative operations are interpreted left to right, saying it's undefined is just as wrong as saying the answer is 1; the answer is 9 and there's no way around it.
i'm a nigger. don't know division comes first. thank goodness i don't build anything that needs engineering math
division comes first
Nigger calling others niggers.
I do build stuff that needs engineering math.
See:
6 / 2 * 3 = 6 * 3 / 2
And, since I engineer stuff involving math, I can tell you to open your browser console and try it for yourself:
2 * 21023 / 21023
2 / 21023 * 21023
Guess which will return what.
If division should come first, they should return the same value even on finite hardware.
If multiplication and division are done in whatever order they are written (because of commutativeness it shouldn't matter), the finite hardware can cause them to be different.
Seriously, this thread is so full of idiots it's obscene.
view the rest of the comments →
[–] 16082334? ago
Multiplication and division are commutative.
6 / 2 * 3 = 6 * 3 / 2
For the image, the "answer is undefined" is more correct,
and even more correct is:
"depends on whether you interpret the text as
6 / (2 * (1 + 2))
or interpret it as
6 / 2 * (1 + 2)
or interpret it as garbage."
[–] 16082367? ago
[–] 16082574? ago
Seriously, the nature of division is difficult to implement in CPU as a logical operation and needs numerical approximation because it is simply the question of X/Y = Z but to calculate Z the logic involved is really add Y to Y and count until >X then subtract 1 to find Z and do Y*Z - X to find remainder.
[–] 16082342? ago
Commutative operations are interpreted left to right, saying it's undefined is just as wrong as saying the answer is 1; the answer is 9 and there's no way around it.
[–] 16085009? ago
Generally, but not always, and it only matters when implemented on finite hardware, otherwise the result should stay the same.
I'm saying there's ambiguity in how you parse the text in the image, you blind idiot.
The unambiguous option would be "6 ÷ 2 × (1 + 2)".
The text in the image might be interpreted as "6 ÷ (2 × (1 + 2))" or as nonsense.
>>12665853
Being so retarded that you need to call others retards so much you misinterpret a line and don't read the next one:
>>12668376
Nigger calling others niggers.
I do build stuff that needs engineering math.
See:
And, since I engineer stuff involving math, I can tell you to open your browser console and try it for yourself:
2 * 21023 / 21023
2 / 21023 * 21023
Guess which will return what.
If division should come first, they should return the same value even on finite hardware.
If multiplication and division are done in whatever order they are written (because of commutativeness it shouldn't matter), the finite hardware can cause them to be different.
Seriously, this thread is so full of idiots it's obscene.
[–] 16082335? ago
Of course, this would be boring, except is it sort-of indicative of many paradoxes, political divides, oxford commas, and such.