This program calculates the value of Pi using the Chudnovsky Algorithm in an successive approximation.\n Calculated value of Pi will be written to an automatically generated external file (pi.txt) in the folder where the Pi_Calculator_(v.X.XX).py file is located. pi.txt will be overwritten if it already exists. Program will be interrupted if the Pi_Calculator.py file is stored in an write protected folder.
- implemented the Brent & Salamin algorithm due to more efficiency
- inspired by DorFuchs
- output file will get it's name by the precision of pi
- plus() returns the 's' variable to ensure proper context precision and roundings
- sys module will only be imported to exit the program if an PermissionError occurs
- Removed unnecessary exception while writing to external file
- removed blank exception, only catching PermissionError if occurs when trying to open external file
- Fixed measurement of time being unnecessarily accurate (17 decimal places)
- Added more comments to the code
- Fixed program crash when Pi_Calculator.py file is executed in an write protected folder
- Value of decimal digits can be set in console manually at program start
- Initial release
This changelog is inspired by the Pi_calculator(vX.XX).py file. Hopefully this will help keep the releases tidy and understandable.