GithubHelp home page GithubHelp logo

artemmatiushenko1 / quadratic-equations-solver Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 93 KB

🧮 Quadratic equations solver

License: MIT License

JavaScript 100.00%
nodejs javascript fs propmt-sync console-application quadratic-equations

quadratic-equations-solver's Introduction

Quadratic equations solver

It is a console application for solving simple quadratic equations.

Installation

  1. Clone the repo:
    git clone https://github.com/artemmatiushenko1/quadratic-equations-solver.git
  2. Open project's directory and install NPM packages:
    npm install

Usage

Application is able to work in two different modes:

  • Interactive mode - user should input the equation coefficients directly from the console. To run this mode execute the following command in the terminal:

      npm run equations-solver

    An application will ask you to enter a, b and c values. Hit enter when you finished entering each value. After the input of the last value the equation roots will be calculated. Example: image

  • Non-interactive / file mode - the application should recieve a path to the txt file while starting, which contains equation coefficients in a special format - a\sb\sc\n, where a, b and c are the coefficients of a quadratic equation, \s - single whitespace and \n - a new line. To run this mode execute the following command in the terminal and replace path/to/file.txt with your own path to the file with the coefficients:

      npm run equations-solver path/to/file.txt

    After executing the command above the roots of equation will be immediately calculated.

    Example: image

Built with

  • Node.js
  • JavaScript
  • propmt-sync npm package

Revert commit - link

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.