This is CLI for quick solving quadratic equations
- Clone the repository to you local machine
git clone https://github.com/dyachaliin/quadratic-equation-solver
- Open directory
cd quadratic-equation-solver/quadratic-equation-solver
- Run solver
swift main.swift
There are two modes supported:
- Interactive
- Noninteractive
Choose mode: Press 1 for Interactive mode or 2 for Noninteractive
For using interactive mode just enter real numbers for a, b, c coefficients.
For using this mode just enter full path to the file.
File's content should be as follows:
1 0 0
or
1\s0\s0\n