this is the improved graphing calculator and some blocks from this project: https://scratch.mit.edu/projects/825300192/
you change function in the project script and do it BEFORE clicking the green flag