Difference between revisions of "Menelaus's theorem"

From JSXGraph Wiki
Jump to navigationJump to search
Line 18: Line 18:
  
 
var cs = board.create('glider', [-3, 3.3, s3], {name: "c'"});
 
var cs = board.create('glider', [-3, 3.3, s3], {name: "c'"});
 +
 +
var TV = function(p,q,t) {
 +
        return p.Dist(t) / p.Dist(q);
 +
    };
 +
 +
var txt = board.create('text', [-3, -3, function() {
 +
        return "TV(a',c,b) * TV(b',a,c) * TV(c',b,a) = " + (TV(as,c,b)*TV(bs,a,c)*TV(cs,b,a)).toFixed(2); }]);
 +
         
 +
  
 
</jsxgraph>
 
</jsxgraph>

Revision as of 22:37, 2 May 2021

The underlying JavaScript code