ScratchData LogoScratchData
Back to Zro716's profile

Infinite Precision Calculator

ZRZro716•Created March 8, 2015
Infinite Precision Calculator
81
63
1830 views
View on Scratch

Description

here are some custom blocks to workaround the haphazard precision of Scratch's operators, including addition, subtraction, multiplication, division, modulo, exponentiation (currently only supports positive integer exponents), factorial, square root, nth root, absolute value, and GCD. Other functions included are an expression parser and evaluator, scientific notation converter, index of, and a lot of neat stuff. It got some much needed optimizations of code, including replacing the division script with the Newton-Raphson method and cutting down on the number of variables needed. And finally, I got to make my expression evaluator. Try it out! Found a bug? Report it here: https://scratch.mit.edu/discuss/topic/188766/ How this project works: http://en.wikipedia.org/wiki/Shunting-yard_algorithm http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic http://en.wikipedia.org/wiki/Long_division https://en.wikipedia.org/wiki/Division_algorithm for Newton-Raphson method https://en.wikipedia.org/wiki/Multiplication_algorithm http://stackoverflow.com/questions/1218149/arbitrary-precision-arithmetic-explanation

Project Details

Project ID51335450
CreatedMarch 8, 2015
Last ModifiedMarch 17, 2016
SharedMarch 14, 2015
Visibilityvisible
CommentsAllowed