Share JSXGraph: example "Standard hyperbola with asymptotes"

JSXGraph
Share JSXGraph: example "Standard hyperbola with asymptotes"
This website is a beta version. The official release will be in **2023**.

Standard hyperbola with asymptotes

Static example of standard hyperbola
// Define the id of your board in BOARDID

JXG.Options.line.strokeWidth = 0.8;

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

var h = board.create('hyperbola', [
    [-Math.sqrt(2), 0],
    [Math.sqrt(2), 0],
    [2, Math.sqrt(3)]
]);

// Asymptotes
var l1 = board.create('line', [0, 1, 1], {
    dash: 1
});

var l2 = board.create('line', [0, -1, 1], {
    dash: 1
});