Since designing and debugging a function blindly is never an easy task I developed 2 “tools” for the Shader editor.
One, WkFunctionDrawer, allows up to 3 functions to be displayed on a graph:
The other, WkDrawValue, displays float values directly as textures:
I personally use them quite a lot. Hope they can be useful for you too