Draw a line on the graph with your finger or mouse, and this page works out the formula that matches it most closely.
Draw a line on the graph with your finger or mouse, and the tool finds the closest-matching formula using least squares. It picks the best fit among polynomial, trigonometric, exponential, and other models, and for Unreal Engine it can output HLSL for a Custom node or a ready-to-paste material node graph.