Closed jarlebring closed 3 years ago
This sounds useful. I guess it's intended to work only if the node :A
is already used by some "operation" node (mult
, lincomb
, or ldiv
) when rename_node!
is called, correct?
Now I think I understand. You suggest the function should fail based on srcnode in relevantnodes
where something like
relevantnodes=[keys(g.parents)...;
getindex.(values(g.parents),1);
getindex.(values(g.parents),2)]
Sound good!
OK, I'll give it a go!
This throws an error and I don't see why it should not work:
This way we can change the input, i.e., if you want to compute the cosine function you can do polynomial evaluation
p(x^2)
wherep
stems from the non-zero coeffs of the taylor exp of cos.