Ceva's theorem: Difference between revisions

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


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


var a = board.create('point', [-4, 0], {name:'a'});
var a = board.create('point', [-4, 0], {name:'a'});
Line 14: Line 14:
var s2 = board.create('segment', [a, c], {color: 'black'});
var s2 = board.create('segment', [a, c], {color: 'black'});
var s3 = board.create('segment', [c, b], {color: 'black'});
var s3 = board.create('segment', [c, b], {color: 'black'});
var as = board.create('glider', [-4, 0, s3], {name:"a'"});
var bs = board.create('glider', [4, -3, s2], {name:"b'"});
var cs = board.create('glider', [1, 4, s1], {name:"c'"});


var TV = function(p,q,t) {
var TV = function(p,q,t) {

Revision as of 20:44, 2 May 2021

TV(a,b,c) is the affine ratio |ac| / |ab|.

The underlying JavaScript code