Git Product home page Git Product logo

filiprokita / quadratic-equation-solver Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14.7 MB

This program is a quadratic equation solver that calculates the roots of a quadratic equation with given coefficients. The user is prompted to input the values of 'a', 'b', and 'c' and then the program solves the equation and displays the roots. If the value of delta is negative, the program displays an error.

C++ 100.00%
algorithm computer-science console-application cpp equation-solver math math-solver numerical-methods programming quadratic-equation

quadratic-equation-solver's Introduction

Quadratic Equation Solver

The Quadratic Equation Solver is a simple console application that can solve quadratic equations of the form ax^2 + bx + c = 0. It prompts the user to input the values of a, b, and c, and then calculates and displays the values of x1 and x2.

How to Use

  1. Run the program by compiling and executing the quadratic_equation_solver.cpp file in your preferred C++ development environment.
  2. When prompted, enter the values of a, b, and c for your quadratic equation.
  3. The program will then calculate and display the values of x1 and x2, if they exist.
  4. Press any key to continue and solve another quadratic equation.

Requirements

  • C++ development environment (e.g. Visual Studio, Code::Blocks, etc.)

Notes

  • If the discriminant (b^2 - 4ac) is less than zero, the program will display a message indicating that the equation has no real roots.

I hope you find this program useful!

quadratic-equation-solver's People

Contributors

filiprokita avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.