In the material node, if I have a curve and want to input a value to make it return the value of its corresponding vertical coordinate, how should I do it?

Just like the float curve node in blender.

Since it can input the time and return the result, is there a way to customize the input value and then make it return a result to me?

Can someone tell me? Thank you very much!