Skip to content

The quadratic_equation module in the C language contains an implementation of the solve_equation function. The arguments of the function are 3 real numbers a, b, c. The function solves the quadratic equation ax^2+bx+c=0.

Notifications You must be signed in to change notification settings

arseny114/quadratic_equation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quadratic_equation module

Description

The quadratic_equation module in the C language contains an implementation of the solve_equation function.

The arguments of the function are 3 real numbers $a$, $b$, $c$. The function solves the quadratic equation $ax^2 + bx + c = 0$.

As a result, the function returns msg_id (the values are described in the quadratic_equation.h file).

Bilding

To build a static library, run the following commands:

  1. Clone the repository:
git clone https://github.com/arseny114/quadratic_equation.git
  1. Create a build:
mkdir build
  1. Go to build:
cd build
  1. Run the build:
cmake ..
make

Tests

To run the tests, you need to use the commands from build:

make check

or:

make test

or:

ctest

About

The quadratic_equation module in the C language contains an implementation of the solve_equation function. The arguments of the function are 3 real numbers a, b, c. The function solves the quadratic equation ax^2+bx+c=0.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published