Simple Quadratic Calculator Made With Python

quad formula pic courtesy Wolfram Alpha

Here’s a simple Python 3 program that I made a while back, to help me with algebra. It’s a quadratic calculator that uses the quadratic formula to compute solutions based on inputs for a, b, and c. I made two versions of it, one with more condensed code. It’s rather simple, and it doesn’t handle complex solutions (It’ll give an error message). Feel free to make changes to the code if you like.

Quadratic Calculator

Condensed Quadratic Calculator

Here’s a screenshot of the program running in commandline.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s