All pastes #802602 Raw Edit

Anonymous

public java v1 · immutable
#802602 ·published 2007-11-30 13:25 UTC
rendered paste body
Celui de la fac : public class TestFunction {	public static void main(String[] args) throws SyntaxErrorException, IOException {		Function f = Functions.parse("* x sin * 2 x");		CurveApplication.start(new FunVariations(f, -2 * Math.PI, 2 * Math.PI));	}}Mon main :public class TestFunction {	public static void main(String[] args) {				List l = new List();		l.setBound(-2 * Math.PI, 2 * Math.PI); // facultatif				// some functions with great syntax		l.add("* x sin * 2 x");		l.add("* x cos + 5 x");		l.add("* x cos + 2 x");		l.add("* 2 x");				// a function with SYNTAX ERROR (uncomment to try)		//l.add("* x sin  2 x");				CurveApplication.start(l);	}}