ScratchData LogoScratchData
Back to Dan0510's profile

Plotting Surfaces

DADan0510•Created May 9, 2017
Plotting Surfaces
1738
1398
27669 views
View on Scratch

Instructions

It's pretty self explanatory ;) You can zoom in and out with arrow keys Please make sure you type in the function correctly. In most cases the project notices syntax errors and resets the function to f(x,y)=0. The project also resets the function if it's too long. I don't recommend to plot functions with definition gaps. Infinity (or "almost" infinity) and NaN are set to 0. Tips for typing in your own function: - pay attention to parentheses, e.g. e^2x is taken as (e^2)*x, not e^(2*x) - supported operators are +, -, *, / and ^ - supported functions are sin, cos, tan, asin, acos, atan, log, ln, exp, abs (absolute value function), sqrt (square root), cbrt (cubic root), root/rt (a. root of b [two arguments!]), floor, ceil, round/rd, sec, csc, cot, sgn - supported variables and constants are x, y, e and pi - keep in mind that Scratch uses degrees (but without °) - potentiation doesn't work fully correctly with non-integer exponents

Description

Featured on 2018/05/06 - Thank you! :D Music: Wallpaper - Kevin MacLeod Plotting complex surfaces: https://scratch.mit.edu/projects/180755299/ For rendering the surfaces I used isometric projection. To calculate individual functions the project first transforms them into Reverse Polish Notation with the Shunting Yard Algorithm and then evaluates them. I tried to comment my scripts in this project, but if there are still questions left, you can ask me ;)

Project Details

Project ID159936516
CreatedMay 9, 2017
Last ModifiedOctober 15, 2020
SharedJune 15, 2017
Visibilityvisible
CommentsAllowed