Skip to content

IamCian/lineq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lineq (Linear Sequence)

Gets the Nth term for a linear sequence.

License

Licensed under the MIT License. See https://choosealicense.com/licenses/mit/

Usage

$ 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

Installation

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

About

Gets the Nth term for a linear sequence

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published