From a performance standpoint, is it better to use multiple math nodes or a single python node when dealing with multiple functions?
I realize it will be easier to simplify using a python node (easier to see redundancy), and probably make better organizational sense to use a single python script rather than a dozen math nodes, but are math nodes more or less efficient?
If you’re using Cycles, then you can’t use Python expressions anyway (though it can be used to generate a group of nodes).
If you’re using BI, I believe it can have python-defined nodes, but it may be a bit slower if the calculations are actually being done in Python and not C.
well if nodes are complex and need a lot of parameters
it might be worth but not easy to learn it - I can give you thread for this
can you show some nodes set up for what you mean
if you need a very specific nodes set up
it might be faster to do it in nodes editor
from speed point of view
math done in python would be faster then doing with nodes
for simple reason that you are calling nodes API to do the math which is slower then doing it with python math!
The Node/Maths Expressons (Lite) addon available at https://github.com/baldingwizard/Blender-Addons/wiki/Dynamic-Maths-Expression (with the full version available on Blender Market) does just that - allows you to enter a textual expression and generates the node group for you. Also allows it to be edited via a custom node within the group, automatically re-building the nodes.
Not really… at least not without some kind of loop (and plenty of limitations).
Your best option is to do the integration in python, and then use the results as it would fit better (an image, a gridmesh, etc)