Git Product home page Git Product logo

squaresolver's Introduction

Quadratic equation solver

Installation

Open Git Bash. Change the current directory to the location where you want the cloned directory, then type:

git clone https://github.com/aidenfmunro/SquareSolver
cd SquareSolver && make

Usage

Now you have 2 options:

  1. Run through tests.
  2. Solve a quadratic equation. If you want to run tests then type -t and the address of the txt file:
a.exe -t testing/tests.txt

Another thing. You can change the tests.txt file. The tests file looks like this:

1. <number_of_tests> // 3
2. <a_b_c_numberOfRoots_x1_x2> // 1 5 6 2 -2 -3 // (x1 > x2) // 2 roots
3. <a_b_c_numberOfRoots_x1_0> // 0 1 2 1 -2 0 // 1 root
4. <a_b_c_numberOfRoots_0_0> // 1 4 9 0 0 0 // 0 roots
5. ... 

If you want to solve a quadratic equation type -s:

a.exe -s

squaresolver's People

Contributors

aidenfmunro avatar

Stargazers

 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.