Open AlejandroEmpower opened 6 years ago
this is actually an oddly interesting question, I'm suprised I knew so little about the behaviour of negatives with respect to real number powers
Ran into this problem again but this time as a complaint from Behzad. He didn't realize this was happening but was instead complaining about values he wasn't expecting in massive equations.
Did some debugging and the problem seems to be what this issue entails. He wants the Expected
results but was getting the Actual
. I however jumped onto Excel to test and found OASIS's way of dealing with the unary negative is inline with Excels. I'm pretty sure Excel is used world-wide so this seems to be a standard, even thought I don't like it.
Negatives are getting applied to variables and numbers before exponents which is not in accordance with the laws of BEDMAS
This is problematic because OASIS is outputting mathematically incorrect results
Steps to reproduce
x1 & x2
and a single Math Objective. Make it-x1^x2
x1 = 1 & x2 = 2
Result
1
-1