Parabola II: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 18: Line 18:
var s2 = board.create('segment', [q, P]);
var s2 = board.create('segment', [q, P]);


var txt = board.create('text', [0.2, 4, () => "|Pf| + |Pq| = " + P.Dist(f).toFixed(2) + ' + ' +  P.Dist(q).toFixed(2) + ' = ' + (P.Dist(f) + P.Dist(q)).toFixed(2)]);
var txt = board.create('text', [0.2, 4, () => "|Pf| - |Pq| = " + P.Dist(f).toFixed(2) + ' - ' +  P.Dist(q).toFixed(2) + ' = ' + (P.Dist(f) - P.Dist(q)).toFixed(2)]);


</jsxgraph>
</jsxgraph>

Revision as of 13:03, 28 June 2021

The underlying JavaScript code