Share JSXGraph: example "Trisectrix of Maclaurin"

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

Trisectrix of Maclaurin

Equation: \[ x(x^{2}+y^{2})=a(3x^{2}-y^{2}) . \] Polar form: \[ r=2a{\frac {\sin(3\varphi )}{\sin(2\varphi )}}=a\left(4\cos(\varphi )-{\frac {1}{\cos(\varphi )}}\right) \]
Web references:
// Define the id of your board in BOARDID

const board = JXG.JSXGraph.initBoard(BOARDID, {
    boundingbox: [-5, 5, 7, -5],
    axis: true
});
 
var a = board.create('slider', [[0.5, 4], [3.5, 4], [0, 1, 8]], {name: 'a'});
var c = board.create('curve', [
    (t) => 2 * a.Value() * Math.sin(3 * t) / Math.sin(2 * t),
    [0, 0], 0, 2 * Math.PI
], {
    strokeWidth: 3, curveType: 'polar'
});