math.eval(["c = b" , "a = b + c"] , {"a" : 1, "b" : 2})
[2, 4]
切换表达式的顺序,
math.eval(["a = b + c" , "c = b"] , {"a" : 1, "b" : 2})
Error: Undefined symbol c
将 c 的初始值设置为NaN
math.eval(["a = b + c" , "c = b"] , {"a" : 1, "b" : 2, c: NaN})
[NaN, 2]
math.js 是否能够以拓扑顺序评估表达式?