Share JSXGraph: example "Trace curve"

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

Trace curve

Trace the orbit of point `p` which depends "somehow" on a slider `s`. The simple method is to add the attribute `trace:true`. This invites exploration. If the trace curve should be used for further construction, the element `tracecurve` is useful.
// Define the id of your board in BOARDID

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

var s = board.create('slider', [[1,-4], [7,-4], [0.01, 1, 8]]);
var p = board.create('point', [
    () => s.Value(),
    () => Math.log(s.Value())
], {trace:true});
var c = board.create('tracecurve', [s, p]);