math.eval(["c = b" , "a = b + c"] , {"a" : 1, "b" : 2})
[2, 4]
Switching the order of the expressions,
math.eval(["a = b + c" , "c = b"] , {"a" : 1, "b" : 2})
Error: Undefined symbol c
Setting initial value for c to NaN
math.eval(["a = b + c" , "c = b"] , {"a" : 1, "b" : 2, c: NaN})
[NaN, 2]
Is math.js capable of evaluating expressions in a topological order ?