d = new FunctionDialog(); d.setFunction("cos(x)^2"); d.setLabel(); d.setPoints(200); d.setRange(0,2); d.Apply(); f = new RegressionListDialog(); f.showInfo(false); f.Apply(); res = f.Result(); lDebug("Result : " + res);