I looked at your blocks.
I notice you don't use parameters in your procedures.
That makes it impossible to reuse them and to use them to feed other procedures.
You can't do functions without parameters.
See this chapter of the book in my FAQ's Books section
Also, I recommend using the input box contents to show the updated equation sooner,
than the graph, because they are unlabeled. Maybe use their hints or add labels?
Another thing that can be done is to add an extra preview pass over the x range,
calculating minimum and maximum y values, then repeating the pass
using the y limits to scale the display.
It will be a day or so before I can supply code,
so feel free to start without me.
ABG