[Libreoffice-bugs] [Bug 43509] exponent priority in calculation order - wrong result

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 10 11:26:47 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=43509

--- Comment #3 from potrykus.gelsenkirchen at freenet.de 2012-04-10 02:26:47 PDT ---
(In reply to comment #1)
> the priority of unary operators is higher then binary operators. From there,
> the result is correct

(In reply to comment #1)
> the priority of unary operators is higher then binary operators. From there,
> the result is correct

-3^2=-9
because operator ^ has higher precedence than -
 Mathematica, Matlab, Matcad, Derive,Maxima,Scilab,Freemat,Octave,Lotus,VB.NET  
gives -9 too.

For +9, it should be written as: (-3)^2. 

when -3^2=9
then:
  3^2-3^2=0
and
  -3^2+3^2=18  ??

see too

links:
http://www.wolframalpha.com/input/?i=2%5E3%5E2
http://www.wolframalpha.com/input/?i=-3%5E2

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list