nichyjt / pe

0 stars 0 forks source link

`Quadratic` solver fails for linear equations #2

Open nichyjt opened 1 year ago

nichyjt commented 1 year ago

Description

When x^2 coefficient is zero, the equation solver does not work as expected.

It claims that x is imaginary and does not tell me the 'roots' of the equation.

As a user, I would expect it to behave like a normal calculator and tell me that it has only one root (if its not parallel to x-axis) and has no minimum point.

Reproduction

Quadratic 0x^2 + x + 1

image.png

nus-se-script commented 1 year ago

Team's Response

Accepted that the output of "x is imaginary" is incorrect. However, I believe the severity to be low as the quadratic solving feature is meant to do just that, solve quadratic equations. Which only includes equations with an x^2 variable. Therefore Users would not likely input 0x^2 as in that case they would not be solving quadratic anymore and thus would not think to use the program.

Items for the Tester to Verify

:question: Issue severity

Team chose [severity.Low] Originally [severity.Medium]

Reason for disagreement: [replace this with your explanation]