@Test
public void test4() throws ScriptException
{
String ext2 = "2*t+1";
ext2 = ext2.replace("t", 0.8+"");
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
System.out.println(engine.eval(ext2));
}