Share JSXGraph: example "Intersection of function graphs"

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

Intersection of function graphs

// Define the id of your board in BOARDID

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

var curve1 = board.create('functiongraph', ['x^2-2'], {strokeColor: 'blue', fixed: false});
var curve2 = board.create('functiongraph', ['4/x', 0.001, 20], {strokeColor: 'black', fixed: false});

var clip_path = board.create('curveintersection', [curve1, curve2], {
    fillColor: 'yellow',
    fillOpacity: 0.3
});