// EvalWithVariables allows variables to be passed into expressions, for
// example evaluate "x + 1" where x=5
EvalWithVariables allows variables to be passed into expressions, for
example evaluate "x + 1" where x=5
// EvalWithVariables allows variables to be passed into expressions for // example evaluate " x + 1 " where x = 5
func EvalWithVariables(expr string, variables map[string]string) (result *big.Rat, err error) {
	symbolTable = variables
	s := ""
	for k := range symbolTable {
		s += k
	}
	symbols_rx = regexp.MustCompile(fmt.Sprintf("(%s)", s))
	return Eval(expr)
}
func EvalWithVariables ( expr string , variables map [ string ] string ) ( result * big . Rat , err error ) { symbolTable = variables s := " " for k := range symbolTable { s += k } symbols_rx = regexp . MustCompile ( fmt . Sprintf ( " " , s ) ) return Eval ( expr ) }
EvalWithVariables allows variables to be passed into expressions, for
example evaluate "x + 1" where x=5
EvalWithVariables allows variables to be passed into expressions for example evaluate " x + 1 " where x = 5