Ellipsis: Difference between revisions

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


var txt = board.create('text', [1, 4, () => "|Pf| + |Pf'| = " + P.Dist(f1).toFixed(2) + ' + ' +  P.Dist(f2).toFixed(2) + ' = ' + (P.Dist(f1) + P.Dist(f2)).toFixed(2)]);
var txt = board.create('text', [0.2, 4, () => "|Pf| + |Pf'| = " + P.Dist(f1).toFixed(2) + ' + ' +  P.Dist(f2).toFixed(2) + ' = ' + (P.Dist(f1) + P.Dist(f2)).toFixed(2)]);


</jsxgraph>
</jsxgraph>

Revision as of 12:37, 28 June 2021

The underlying JavaScript code