Gets the Nth term for a linear sequence
Gets the Nth term for a linear sequence.
Licensed under the MIT License.
See https://choosealicense.com/licenses/mit/
$ lineq --helpUsage: lineq [-w show_workings] TERMSGet the Nth term for a linear sequenceExample: lineq -w 13 9 5 1 -3 -7$ lineq 13 9 5 1 -3 -7Tn=-4n+17$ lineq -w 13 9 5 1 -3 -7Tn=a+(n-1)dd=-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