function f(x) { return Math.sin(x)*Math.cos(x)*p.X(); } c = plot(f); g = JXG.Math.Numerics.D(f); plot(g,{strokecolor:'black', dash:1}); h = JXG.Math.Numerics.D(g); plot(h, {strokecolor:'red', dash:2}); var interval = [0, 2.5]; i_m = JXG.Math.Numerics.I(interval, f); board.createElement('integral', [interval, c]);