Share JSXGraph: example "Hyperbola as function graph"

JSXGraph
Share JSXGraph: example "Hyperbola as function graph"
This website is a beta version. The official release will be in **2023**.

Hyperbola as function graph

Static plot of $$ f: x \mapsto \frac{1}{x} $$
// 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: false
});

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