1. Anybody interested in a Quadratic Solver?

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

Let me know what you guys think of it.

2. Originally Posted by janvdl
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

3. 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*

4. 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?

5. 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?

6. 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?

7. 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

8. Originally Posted by janvdl
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

9. 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...

10. 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

11. Originally Posted by janvdl
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
Good job!

12. 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.

13. I like it.

14. Great Now here's the link chaps