Difference between revisions of "Parabola II"

From JSXGraph Wiki
Jump to navigationJump to search
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 15:03, 28 June 2021

The underlying JavaScript code