# Anybody interested in a Quadratic Solver?

Show 40 post(s) from this thread on one page
Page 1 of 4 1234 Last
• Dec 12th 2007, 04:51 AM
janvdl
Anybody interested in a Quadratic Solver?
I programmed one. Simple, i know, but it does the job :D

Let me know what you guys think of it.

• Dec 12th 2007, 09:59 AM
Jhevon
Quote:

Originally Posted by janvdl
I programmed one. Simple, i know, but it does the job :D

Let me know what you guys think of it.

it can't find complex roots
• Dec 12th 2007, 10:03 AM
janvdl
Quote:

Originally Posted by Jhevon
it can't find complex roots

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

I guess only kids in lower grades might find it useful then... *sigh*
• Dec 12th 2007, 10:08 AM
Jhevon
Quote:

Originally Posted by janvdl
No it uses the $\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?
• Dec 12th 2007, 10:10 AM
janvdl
Quote:

Originally Posted by Jhevon
i realize that you used the quadratic formula. couldn't you alter the code to recognize complex roots though?

Expand on that?
• Dec 12th 2007, 10:27 AM
Jhevon
Quote:

Originally Posted by janvdl
Expand on that?

as in tell the program that if it gets $\sqrt{-2}$ for example, it should interpret it as $\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?
• Dec 12th 2007, 10:39 AM
janvdl
Quote:

Originally Posted by Jhevon
as in tell the program that if it gets $\sqrt{-2}$ for example, it should interpret it as $\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 :D
• Dec 12th 2007, 10:40 AM
Jhevon
Quote:

Originally Posted by janvdl
You started this idea, so you're going to help me put it to work :D

i don't know what programming language you are using, and chances are, even if i did, i wouldn't know it
• Dec 12th 2007, 10:45 AM
janvdl
Quote:

Originally Posted by Jhevon
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... :D
• Dec 13th 2007, 05:08 AM
janvdl
Okay, i got it to calculate complex roots. :cool:

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 :D
• Dec 13th 2007, 06:04 AM
colby2152
Quote:

Originally Posted by janvdl
Okay, i got it to calculate complex roots. :cool:

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 :D

Good job!
• Dec 13th 2007, 07:23 AM
janvdl
Quote:

Originally Posted by colby2152
Good job!

Thanks. ;) I sent a message to MathGuru. I'll have to wait and see what he thinks of it.
• Dec 13th 2007, 09:01 AM
MathGuru
I like it.
• Dec 13th 2007, 09:39 AM
janvdl
Great :) Now here's the link chaps :D

• Dec 13th 2007, 09:57 AM
topsquark
Quote:

Originally Posted by janvdl
Great :) Now here's the link chaps :D