Click here to Skip to main content
15,896,434 members
Articles / Programming Languages / C++

A simple program to solve quadratic equations with

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
15 Nov 2010CPOL 5.8K   2  
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...

Views

Daily Counts

License

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


Written By
Engineer
United States United States
BS Aerospace Engineering 1993, University of Virginia
ME Aerospace Engineering 1995, University of Virginia

Comments and Discussions