GithubHelp home page GithubHelp logo

quadratic_equation's Introduction

Solver of quadratic equation

This program is the first task of ISP RAS course C/C++ by I. R. Dedinsky

Structure

  • Main project
    • src/
      • solver_quadratic_equation.c
      • equation_lib.c
  • Test project
    • tests/
      • tests_from_file.c
      • tests.c
      • test_lib.h
  • File with tests
    • file_test.txt

Run

To run main program

cmake .
make
./quadratic_equation

To run tests

cmake .
make
./tests

To run tests with data from .txt

  • The line of test.txt looks like a b c roots x1 x2
  • roots = -42 means overflow, roots = -1 means infinite number of roots (value of x1 and x2 do not matter), if roots = 0 then x1 = -1 x2 = -1
  • example -1 -2 15 2 3.0 -5.0 or 1.79769e+308 1.79769e+308 1.79769e+308 -42 0.0 0.0
  • example for liner 0 1 0 1 0 0 or 0 3 -9 1 3 0
cmake .
make
./tests_from_file

or To run tests from test_lib.h

cmake .
make
./tests

Documentation

You can watch documentation by opening docs/html/index.html in browser.

OS

KUbuntu 18.04

quadratic_equation's People

Contributors

vvdvortsova 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.