https://bugs.freedesktop.org/show_bug.cgi?id=43509
--- Comment #3 from [email protected] 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. _______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
