public Generic derivative(int n) { return JSCLInteger.valueOf(1).add(new Cot(parameter[0]).evaluate().pow(2)).negate(); }
public Generic identity(Generic a, Generic b) { Generic ta = new Cot(a).evalsimp(); Generic tb = new Cot(b).evalsimp(); return new Frac(ta.multiply(tb).subtract(JSCLInteger.valueOf(1)), ta.add(tb)).evalsimp(); }
public Generic antiderivative(int n) throws NotIntegrableException { return new Log(JSCLInteger.valueOf(4).multiply(new Sin(parameter[0]).evaluate())).evaluate(); }