https://github.com/samiyr/discrete
Arbitrary-precision integer calculator for iOS
https://github.com/samiyr/discrete
arbitrary-precision calculator ios swift4
Last synced: about 1 month ago
JSON representation
Arbitrary-precision integer calculator for iOS
- Host: GitHub
- URL: https://github.com/samiyr/discrete
- Owner: samiyr
- Created: 2019-03-19T16:53:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T07:27:57.000Z (over 7 years ago)
- Last Synced: 2025-01-20T09:31:08.603Z (over 1 year ago)
- Topics: arbitrary-precision, calculator, ios, swift4
- Language: Swift
- Size: 804 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discrete
### Arbitrary-precision integer calculator
Discrete is a collection of algorithms and a GUI around the [BigInt](https://github.com/attaswift/BigInt) framework. It allows to compute integer arithmetic and integer function values to arbitrary precision. So yes, you can compute 1000! (factorial) with this. The GUI parses math input using [DDMathParser](https://github.com/davedelong/DDMathParser).
There is no real purpose for this project, other than I think implementing some of the algorithms was interesting and educational. Still, there's a lot of room for improvements. This could be useful for someone who specifically needs to compute integer functions, be it in number theory or theoretical computer science. Speaking of which...
*the output of this app is not guaranteed to be correct*. In most cases, it is correct, but since there is basically no tests (another area of improvement), I can't guarantee that.
### Incomplete list of functions
* Basic arithmetic
* Modulo, GCD
* Factorial and double factorial
* Tetriation
* Binomial coefficients
* Variations
* Stirling numbers (1st and 2nd kind)
* Lah numbers
* Arithmetic derivatives
* Fibonacci, Lucas, Catalan and Bell numbers
* Logical and bitwise operators