https://github.com/davidbootle/command-line-quadratic-formula
Execute the command with a couple parameters, and it will spit out the answers.
https://github.com/davidbootle/command-line-quadratic-formula
Last synced: 3 months ago
JSON representation
Execute the command with a couple parameters, and it will spit out the answers.
- Host: GitHub
- URL: https://github.com/davidbootle/command-line-quadratic-formula
- Owner: DavidBootle
- Created: 2021-01-27T18:16:37.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-01T01:21:50.000Z (about 5 years ago)
- Last Synced: 2024-02-02T07:21:44.520Z (over 2 years ago)
- Language: HTML
- Homepage:
- Size: 8.56 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Command Line Quadratic Formula
Allows you to calculate solutions to quadratics from the command line. Could be useful, I don't know. Program is for Windows 10, but may work on other versions of Windows. Feel free to build it yourself for other operating systems.
## Installation
Download the file `quadform.exe` in the dist directory. This is the exe you will use to run the command. Place it in the directory you are going to use it in or add it's directory to path to access it globally.
## Usage
The syntax is `quadform a b c` where `a`, `b`, and `c` are numbers that can be converted into a float. `a`, `b`, and `c` relate to the coefficients of the base quadratic equation, as shown: `ax^2+bx+c`.
Once run, the program will output `The solutions are __ and __`. If the solutions are complex numbers, they will be displayed as `(real + (imag)j)`. For example, `3i + 2` would be displayed as `(2 + 3j)`. The program will check to see if the solution is a fraction, and if it is, it will output in fraction form. Otherwise, the solution will output either integers or decimals.
## Example
To get the solutions for the quadratic equation `3x^2 + 4x -15`:
```batch
> quadform 3 4 -15
The solutions are -3 and 5/3
```