Math Controller is an addon for Blender that adds a single advanced math node which performs numerical calculations according to the formulas you write. It is a custom group node that generates a network of math nodes inside itself, and it can be used in the Shader Editor, Geometry Node Editor, Compositor and Texture Node Editor. In the Texture Node Editor, sockets appear only on the sub-groups the node generates.
Formulas can combine real numbers, variables, functions from the built-in list, and the outputs of other fields such as f1 and f2. Variables used in a formula are added as input sockets automatically, and a socket is removed once its variable is no longer used and has no incoming connection. The +/- buttons add or remove formula fields, and an Advanced Formula Editor helps with longer expressions, parenthesis nesting and browsing the function list.
A button generates a standard node group that stays synchronized with the Math Controller, giving access to the internal node network for editing. The Math Controller overwrites this internal structure during updates. It is licensed under GPL-3.0 or later.