Are you able to fall back to normal git commands if you don’t know the shortcuts? This sounds awesome until I can’t remember the syntax to do something I don’t do everyday.
The expression 6/2(1+2) involves both multiplication and division. According to the order of operations (PEMDAS/BODMAS), you should perform operations inside parentheses first, then any multiplication or division from left to right.
Certainly! The expression 6/2(1+2) is ambiguous due to the implicit multiplication. Let’s solve it in both ways:
Implicit multiplication with higher priority:
[ \frac{6}{2}(1+2) ]
First, solve the parentheses:
[ \frac{6}{2}(3) ]
Now, perform the division:
[ 3 \times 3 = 9 ]
Implicit multiplication with the same priority as division:
[ \frac{6}{2(1+2)} ]
Again, solve the parentheses:
[ \frac{6}{2(3)} ]
Now, perform the multiplication first:
[ \frac{6}{6} = 1 ]
So, depending on the interpretation of implicit multiplication, you can get different results: 9 or 1.
I think it’s funny that ChatGPT figured out 1 and 9 but has the steps completely backwards. First it points out what has high priority and then does the exact opposite, both times 🤣
Forgot the algebra using fruit emoji or whatever the fuck.
Bonus points for the stuff where suddenly one of the symbols has changed and it's "supposedly" 1/2 or 2/3 etc. of a banana now, without that symbol having been defined.
programming.dev
Top