Quadratic equation in math book lacks () around 2*a

Issue #197 closed
Former user created an issue

Originally reported on Google Code with ID 197

What steps will reproduce the problem?
Use the quadratic equation in the math book (ctrl+1)

What is the expected output? What do you see instead?

for 25x^2 - 150x - 99 = 0 

a=25
b=-150
c=-99

x1 should be -0.6 and x2=6.6 (see http://www.akiti.ca/Quad2Deg.html)

But with x1=(-b+sqrt(b^2-4*a*c))/2*a and x2=(-b-sqrt(b^2-4*a*c))/2*a

x1=4125 and x2=-375

It seem the equation should be:
x1=(-b+sqrt(b^2-4*a*c))/(2*a)
x2=(-b-sqrt(b^2-4*a*c))/(2*a)

What version of the product are you using? On what operating system?
0.10.1 on XP

Reported by bruno@burnbox.net on 2008-06-18 12:51:21

Comments (10)

  1. Former user Account Deleted

    ``` Hi. It's very wrong indeed. It obviously lacks the () around 2*a. Thanks for reporting. ```

    Reported by `helder.pereira.correia` on 2008-06-18 13:42:56 - Status changed: `Accepted`

  2. Former user Account Deleted

    ``` Fixed in trunk, revision 1417. ```

    Reported by `helder.pereira.correia` on 2008-07-03 23:04:32 - Status changed: `Fixed` - Labels added: Milestone-0.11

  3. Former user Account Deleted

    ``` Issue 269 has been merged into this issue. ```

    Reported by `helder.pereira.correia` on 2009-03-10 09:56:50

  4. Former user Account Deleted

    ``` Issue 276 has been merged into this issue. ```

    Reported by `helder.pereira.correia` on 2009-04-18 10:44:46

  5. Former user Account Deleted

    ``` Issue 312 has been merged into this issue. ```

    Reported by `helder.pereira.correia` on 2009-09-22 22:26:30

  6. Former user Account Deleted

    ``` Issue 328 has been merged into this issue. ```

    Reported by `helder.pereira.correia` on 2010-02-07 08:24:28

  7. Former user Account Deleted

    ``` Issue 339 has been merged into this issue. ```

    Reported by `helder.pereira.correia` on 2010-04-14 20:32:21

  8. Log in to comment