Menelaus's theorem: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
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 20:37, 2 May 2021

The underlying JavaScript code