public double evaluate ( Map < String , Double > localVariables ) { if ( this . root == null ) { throw new RuntimeException ( "[function error] evaluation failed " + "because function is not loaded" ) ; } return this . root . evaluate ( localVariables ) ; }
Computes the function value of this term using the given map of variable substitutions .