Share JSXGraph: example "Hyperbolic spiral"

JSXGraph
Share JSXGraph: example "Hyperbolic spiral"
This website is a beta version. The official release will be in **2023**.

Hyperbolic spiral

The hyperbolic spiral can be described in polar coordinates $(r, \theta)$ by the equation $$ r = \frac{a}{\theta}$$
// Define the id of your board in BOARDID

const board = JXG.JSXGraph.initBoard(BOARDID, {
    boundingbox: [-10, 10, 10, -10]
});
var a = board.create('slider', [[0, 5], [8, 5], [0, 4, 30]], {name: 'a'});

var c = board.create('curve', [(phi) => a.Value() / phi,
    [0, 0], 0, 8 * Math.PI
], {curveType: 'polar', strokewidth: 4});