Type in an expression (like 1+1 or abs(2-4)). #1, #2, #3, etc. are preset formulas. Order of operations: +, -, *, /, ^, ( ), [ ], &, |, e, pi, %(mod), =, >, <, not, sin, cos, tan, asin, acos, atan, sqrt, abs, log, ln, floor, ceiling, round. Type "ans" to substitute in the previous answer. Type 5->A to set a variable. Have fun and remember to press Love-it!
This is an expression evaluator that I wrote using only 1 custom block. To use it on one of your projects, use the backpack to transfer the block to your project. update April 11, 2022: hacked block was broken, so replaced with a longer script (This project used to use a hacked [(sqrt) of (9)] block to be more compact.) Give suggestions for more operators and demos. Credit to @DadOfMrLog for the x^y formula. Credit to @djpro for the pen text engine.