Menelaus's theorem: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 3: Line 3:
JXG.Options.text.fontSize = 24;
JXG.Options.text.fontSize = 24;


var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], axis:true, showCopyright:false, showNavigation:false});
var board = JXG.JSXGraph.initBoard("jxgbox", {boundingbox: [-5,5,5,-5], axis:false, showCopyright:false, showNavigation:false});


var a = board.create('point', [-1.7, 0], {name:'a'});
var a = board.create('point', [-1.7, 0], {name:'a'});
Line 23: Line 23:
     };
     };


var txt = board.create('text', [-4.5, -3, function() {
var txt = board.create('text', [-4.5, -4, 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); }]);
         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:38, 2 May 2021

The underlying JavaScript code