Gets the Nth term for a linear sequence.
Licensed under the MIT License. See https://choosealicense.com/licenses/mit/
$ lineq --help
Usage: lineq [-w show_workings] TERMS
Get the Nth term for a linear sequence
Example: lineq -w 13 9 5 1 -3 -7
$ lineq 13 9 5 1 -3 -7
Tn=-4n+17
$ lineq -w 13 9 5 1 -3 -7
Tn=a+(n-1)d
d=-4 (difference)
a=13 (starting term)
Tn=-4n+17
Installs to /usr/local/bin/lineq by default
$ git clone https://github.com/IamCian/lineq.git lineq
$ cd lineq
$ make
$ sudo make install
Removal
$ sudo make uninstall
or
$ sudo rm /usr/local/bin/lineq