ScratchData LogoScratchData
Back to griffpatch's profile

Mathematic Evaluator

GRgriffpatch•Created May 31, 2014
Mathematic Evaluator
1222
1029
24224 views
View on Scratch

Instructions

A simple arithmetic evaluator. Enter a sum like 3+4 and Scratch cat will tell you the answer. This project supports numbers, +, -, *, /, (, ), ^, sqrt, sin, cos & log and I've added support for two parameters (arguments, like a, b, x, y, n or cheese). This could be extended to draw graphs? :) And add more mathematical operators.

Description

There are two stages to this project. The first stage converts the mathematical string into reverse polish notation. The second stage then evaluates the reverse polish notation to find the answer... Thanks to @DadOfMrLog for the ^ scripts :) This project came about because of a request by @ShieldOS

Project Details

Project ID23024829
CreatedMay 31, 2014
Last ModifiedNovember 26, 2023
SharedMay 31, 2014
Visibilityvisible
CommentsAllowed