Since eval() is (properly) not available at Turtletoy I implemented a simple (probably naive) formula parser (tokenizer) and solver.
It supports all basic arithmetic and binary operators and Math functions and constants.
It also allows the use of custom variables and assigning values (including functions) to them when solving.
Fibonacci sequence: Formulae 🧮 (variation)
08066.repeat: Formulae 🧮 (variation)
Log in to post a comment.
// Formula parser and solver - Created by Jurgen Westerhof 2024// MIT license