Type in the function you want to use, then input the variables. It's not perfect, but the answers are usually right or close to it. Some of the math and scripts inside may be a bit complicated, but I tried to explain them with comments.
I've always wanted to use an exponent or try log with a different base, but Scratch sadly didn't have the operators for them, so I decided to add some with custom blocks!