Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Go to top

A simple program to solve quadratic equations with

, 15 Nov 2010
I am reposting this because I accidentally deleted my first post.The solution is presented as a pair of complex roots, unless a == 0, in which case the equation is linear and returns a single complex(real) root.If a == 0 and b == 0, the function fails.Given a complex type, replace...
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Michael Waters
Engineer
United States United States
BS Aerospace Engineering 1993, University of Virginia
ME Aerospace Engineering 1995, University of Virginia

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 15 Nov 2010
Article Copyright 2010 by Michael Waters
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid