如何使用 JSXGraph 访问积分值?

How to access value of integral with JSXGraph?

我正在阅读:how to make a dynamic function to draw integral Graph from user input with JSXGraph?

那里的积分值为“-1.6667”。如何获取值?

我尝试搜索帮助,但找不到。

已解决:

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);}
],{});