Electronics > Beginners
Exponents
Wimberleytech:
--- Quote ---
Isn't BEDMAS taught any more? (Brackets, exponents, division, multiplication, addition, subtraction).
--- End quote ---
We use the mnemonic: Please Excuse My Dear Aunt Sally
ebastler:
--- Quote from: metrologist on April 09, 2019, 02:14:52 am ---Yes, thanks all. I see no reasonable solution to my problem.
--- End quote ---
It is really simple. Due to the operator priorities which are agreed upon in mathematical notation, -34 = -(34) = -81.
If you were thinking of (-3)4, then that's what you have to write, including the parentheses. And that would evaluate as (-3)4 = 81.
Brumby:
--- Quote from: ebastler on April 09, 2019, 11:44:12 am ---If you were thinking of (-3)4, then that's what you have to write, including the parentheses. And that would evaluate as (-3)4 = 81.
--- End quote ---
This is exactly my point here:
--- Quote from: Brumby on April 09, 2019, 02:37:31 am ---If there IS an issue with the expression, then that lies with the person who prepared it. THAT is, actually, a much more important step than resolving it. If it is not written correctly, then you will not - and can not - get a correct answer.
--- End quote ---
Andrew Morton:
The - is part of the number, not an operator, so it's the same as -3 * -3 * -3 * -3.
ebastler:
--- Quote from: Andrew Morton on April 09, 2019, 02:55:47 pm ---The - is part of the number, not an operator, so it's the same as -3 * -3 * -3 * -3.
--- End quote ---
Wow - it's brave to claim that, after about ten people have stated the opposite. ;)
And I'm afraid it is wrong: https://en.wikipedia.org/wiki/Order_of_operations#Unary_minus_sign
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version