Share JSXGraph: example "Inequalities (function graphs)"

Share JSXGraph: example "Inequalities (function graphs)"
This website is a beta version. The official release will be in **2023**.

Inequalities (function graphs)

Have also a look at "Inequalities (half-planes)".
This example shows for a function $x\mapsto f(x)$ the area of all points $(x,y)$ with $y - f(x) \leq 0$.
// Define the id of your board in BOARDID

const board = JXG.JSXGraph.initBoard(BOARDID, {
    boundingbox: [-5, 5, 5, -5],
    axis: true

var f = board.create('functiongraph', [(t) => Math.sin(t) * t]);

var ineq = board.create('inequality', [f], {
    fillColor: 'yellow'