https://github.com/linguini1/quadratic
Command line program to find the zeroes of a quadratic polynomial in form ax^2 + bx + c.
https://github.com/linguini1/quadratic
c circuits cli cli-tool command-line math quadratic quadratic-formula
Last synced: 1 day ago
JSON representation
Command line program to find the zeroes of a quadratic polynomial in form ax^2 + bx + c.
- Host: GitHub
- URL: https://github.com/linguini1/quadratic
- Owner: linguini1
- License: mit
- Created: 2024-04-15T23:10:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T23:12:48.000Z (about 2 years ago)
- Last Synced: 2025-10-15T00:47:22.574Z (9 months ago)
- Topics: c, circuits, cli, cli-tool, command-line, math, quadratic, quadratic-formula
- Language: C
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# quadratic
A simple command line program for solving the quadratic equation. I built this purely to save me a little time when
doing algebra for my engineering homework. The quadratic formula shows up quite often in circuit problems for non-linear
circuits, and it becomes tedious to evaluate the quadratic formula each time.
# Usage
To see usage instructions for this program, please run `quadratic -h`.
Example output:
```console
[user]$ quadratic -- 1 -10 16
1.000000x^2 + -10.000000x + 16.000000
x = 8.000000
x = 2.000000
[user]$ quadratic -v y -- 1 -10 16
1.000000y^2 + 2.000000y + 3.000000
x = -1.000000 + 1.414214i
x = -1.000000 + -1.414214i
```
# Build/Installation
The build recipe is in the Makefile. Running `make all` will create a binary called `quadratic` which you can then run.
Although only tested on Linux, this program should build and run just fine on all other platforms.