Search code examples
integraljsxgraph

How to access value of integral with JSXGraph?


I was reading: how to make a dynamic function to draw integral Graph from user input with JSXGraph?

There the value of the integral is "-1.6667". How to access the value?

I have tried to search help, but cannot find.


Solution

  • Solved:

    function g(x){return Math.sin(x)+1};
    
    var F = brd.create('point', [
      function(){return s.X();}, 
      function(){return JXG.Math.Numerics.I([-2,s.X()],g);}
    ],{});