Hi,
I have functions that look something like this:
C(x) = A(x) + B(x)
B(x) = 2*A(x)
A(x) = exp(x)
where I’d like to calculate C(x)
while only evaluating A(x)
once. The actual situation is more complex, e.g. a naive implementation might calculate A(x)
hundreds of times.
What libraries are good for this? Some options I’ve seen are Symbolics / ModelingToolKit
, NaiveNASLib
, or rolling my own (which I’d prefer to avoid) using LightGraphs
.