Share JSXGraph: example "Folium of Descartes"

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

Folium of Descartes

The folium of Descartes can be expressed in polar coordinates as \[ r= {\frac {3a\sin \theta \cos \theta }{\sin ^{3}\theta +\cos ^{3}\theta }}, \]
// 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) => 4* a.Value() * Math.sin(t) * Math.cos(t) / (Math.sin(t)**3 + Math.cos(t)**3),
    [0, 0], 0, 2 * Math.PI
], {
    strokeWidth: 3, curveType: 'polar'
});