https://github.com/realeroberto/bashlets-math
Math package for the bashlets project.
https://github.com/realeroberto/bashlets-math
bash bashlets math
Last synced: 2 months ago
JSON representation
Math package for the bashlets project.
- Host: GitHub
- URL: https://github.com/realeroberto/bashlets-math
- Owner: realeroberto
- Created: 2020-04-05T13:50:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-04T17:48:01.000Z (over 5 years ago)
- Last Synced: 2025-03-12T10:44:59.669Z (over 1 year ago)
- Topics: bash, bashlets, math
- Language: Shell
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bashlets-math
Math package for the [bashlets](https://github.com/reale/bashlets) project.
Specifically, this package contains the following modules:
* `bashlets.math.bc`: Interface to the bc calculator
* `bashlets.math.historical`: Historical algorithms
* `bashlets.math.poly`: Polynomials
## Installing
First install the bashlets [core distribution](https://github.com/reale/bashlets).
Then it is enough to do:
$ bashlets-install math
## Examples
### Calculate basic constants to (almost) arbitrary precision
$ source bashlets math::bc::constants
$ bash$$ constants calculate phi 60
1.618033988749894848204586834365638117720309179805762862135448
### Calculate Pi by Viète's formula
$ source bashlets math::historical::constant
$ bash$$ constant pi_by_viete
3.14159