Expression Nodes
Using only the formula, you can generate a large number of math nodes using this plugin. You don't have to do it yourself without any mistake.
Simply type the formula and hit the "Create Nodes" button, in any Blender node editor that has a math node.