# Anybody interested in a Quadratic Solver?

MHF Hall of Fame
Last edited:
colby2152

#### Jhevon

MHF Helper
I programmed one. Simple, i know, but it does the job

Let me know what you guys think of it.
it can't find complex roots

#### janvdl

MHF Hall of Fame
it can't find complex roots
No it uses the $$\displaystyle \frac{ -b \pm \sqrt{b^2 - 4ac} }{2a}$$ formula.

I guess only kids in lower grades might find it useful then... *sigh*

#### Jhevon

MHF Helper
No it uses the $$\displaystyle \frac{ -b \pm \sqrt{b^2 - 4ac} }{2a}$$ formula.

I guess only kids in lower grades might find it useful then... *sigh*
i realize that you used the quadratic formula. couldn't you alter the code to recognize complex roots though?

#### janvdl

MHF Hall of Fame
i realize that you used the quadratic formula. couldn't you alter the code to recognize complex roots though?
Expand on that?

#### Jhevon

MHF Helper
Expand on that?
as in tell the program that if it gets $$\displaystyle \sqrt{-2}$$ for example, it should interpret it as $$\displaystyle \sqrt{2}~i$$. would that be too hard?

i never checked, how does it deal with double roots? that is, when what's under the square root sign is zero?

#### janvdl

MHF Hall of Fame
as in tell the program that if it gets $$\displaystyle \sqrt{-2}$$ for example, it should interpret it as $$\displaystyle \sqrt{2}~i$$. would that be too hard?

i never checked, how does it deal with double roots? that is, when what's under the square root sign is zero?
You started this idea, so you're going to help me put it to work

#### Jhevon

MHF Helper
You started this idea, so you're going to help me put it to work
i don't know what programming language you are using, and chances are, even if i did, i wouldn't know it

#### janvdl

MHF Hall of Fame
i don't know what programming language you are using, and chances are, even if i did, i wouldn't know it
Oh no, you're just going to do the maths...

#### janvdl

MHF Hall of Fame
Okay, i got it to calculate complex roots.

I was wondering if i could put a link to MHF up on it? Would that be okay?

EDIT: I guess everyone would like to see first. See the attached pic

#### Attachments

• 30.2 KB Views: 123
colby2152