项目作者: IamCian

项目描述 :
Gets the Nth term for a linear sequence
高级语言: C
项目地址: git://github.com/IamCian/lineq.git
创建时间: 2020-01-01T22:29:56Z
项目社区:https://github.com/IamCian/lineq

开源协议:MIT License

下载


Lineq (Linear Sequence)

Gets the Nth term for a linear sequence.

License

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

Usage

  1. $ lineq --help
  2. Usage: lineq [-w show_workings] TERMS
  3. Get the Nth term for a linear sequence
  4. Example: lineq -w 13 9 5 1 -3 -7
  5. $ lineq 13 9 5 1 -3 -7
  6. Tn=-4n+17
  7. $ lineq -w 13 9 5 1 -3 -7
  8. Tn=a+(n-1)d
  9. d=-4 (difference)
  10. a=13 (starting term)
  11. Tn=-4n+17

Installation

Installs to /usr/local/bin/lineq by default

  1. $ git clone https://github.com/IamCian/lineq.git lineq
  2. $ cd lineq
  3. $ make
  4. $ sudo make install

Removal

  1. $ sudo make uninstall

or

  1. $ sudo rm /usr/local/bin/lineq