ScratchData LogoScratchData
Back to RedSGXD's profile

Calculator

RERedSGXD•Created September 28, 2020
Calculator
1
0
15 views
View on Scratch

Instructions

Do math with 2 numbers with this simple calculator. Just click the thing to do the designed function. If you don't feel like clicking, then you can press buttons (Number Keys for Numbers, A For Answer, _ for Positive/Negative, + For Addition, - for Subtraction, * or X For Multiplication, / For Division, ^ for Exponents, R for Roots, Enter for Equals, C For Clear, S For Sine, O for Cosine, T for Tangent, G for Logarithm, L for Base e Logarithm (ln), P for Pi, E for E, K for a Random Number, . For Decimals, ! For Factorial and hold Space to Invert.

Description

I FINALLY fixed the calculator, along with adding the factorial function (ex: 5! = 5*4*...*1 ). Note that the factorial is not the real answer and is just an approximation (unless if the input is an integer). It uses @geotale's factorial approximation which is in https://scratch.mit.edu/projects/450476762/. I just changed it so it works with negative numbers Also, the exponents and roots are kind of broken now because of floating point. Take 3^2 for example. (3^2) is equal to (e^(ln(3)*2)) because ln(3^2) can be simplified to 2*ln(3), however when you do this, for some reason, you get 8.999999999999998 instead of 9. Things added/changed: *Factorial Function *Fixed Functions *Fixed Numbers *Made it so that the calculator says the entire number and not just 2 digits Sadly, I am not gonna be updating this calculator, but I will be making a new one with more operations, which is just better in general.

Project Details

Project ID430019216
CreatedSeptember 28, 2020
Last ModifiedJanuary 16, 2023
SharedOctober 27, 2020
Visibilityvisible
CommentsAllowed