Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soimort/pi.clj
Calculates π to arbitrary precision using Machin's Formula.
https://github.com/soimort/pi.clj
Last synced: 2 months ago
JSON representation
Calculates π to arbitrary precision using Machin's Formula.
- Host: GitHub
- URL: https://github.com/soimort/pi.clj
- Owner: soimort
- License: mit
- Created: 2013-11-11T22:31:15.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-11T22:41:47.000Z (about 11 years ago)
- Last Synced: 2024-10-14T12:25:35.280Z (3 months ago)
- Language: Clojure
- Size: 97.7 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π.clj
Calculates π to arbitrary precision using [Machin's Formula](http://mathworld.wolfram.com/MachinsFormula.html):
![Machin's Formula](http://mathworld.wolfram.com/images/equations/MachinsFormula/NumberedEquation1.gif)
## Usage
$ lein run 2
3.14$ lein run 1000
3.141592653589793238462643383279502884197169399375105820974944592
30781640628620899862803482534211706798214808651328230664709384460
95505822317253594081284811174502841027019385211055596446229489549
30381964428810975665933446128475648233786783165271201909145648566
92346034861045432664821339360726024914127372458700660631558817488
15209209628292540917153643678925903600113305305488204665213841469
51941511609433057270365759591953092186117381932611793105118548074
46237996274956735188575272489122793818301194912983367336244065664
30860213949463952247371907021798609437027705392171762931767523846
74818467669405132000568127145263560827785771342757789609173637178
72146844090122495343014654958537105079227968925892354201995611212
90219608640344181598136297747713099605187072113499999983729780499
51059731732816096318595024459455346908302642522308253344685035261
93118817101000313783875288658753320838142061717766914730359825349
04287554687311595628638823537875937519577818577805321712268066130
019278766111959092164201989## License
Copyright © 2013 Mort Yao
Distributed under the MIT License.