A right triangle [3,4,5] with two dynamic points on the hypotenuse with one perpendicular point by Jsxgraph

var board = JXG.JSXGraph.initBoard('box1', {
boundingbox: [-3.5, 3.5, 3.5, -3.54],showNavigation:false, showcopyright: false, axis: false,
});

var p1 = board.create('point', [-2.5, -2],{name:'B',fixed:true,face:'',label:{offset:[-15,10]}});
var p2 = board.create('point', [2.5, -2],{name:'A',fixed:true,face:''});
var l1 = board.create('segment', [p1, p2]);
var c1 = board.create('circle', [p1, 4],{visible:false});
var c2 = board.create('circle', [p2, 3],{visible:false});
var i1 = board.create('intersection', [c1, c2, 1],{face:'',label:{offset:[-10,10]}});
var l2 = board.create('segment', [p1, i1],);
var l3 = board.create('segment', [i1 , p2],);
var g1 = board.create('glider', [0.74, 0, l1],{label:{offset:[0,-15]}});
var g2 = board.create('point', [function(){return (80-32*2.5+32*g1.X())/(25-5*2.5+5*g1.X())-2.5},-2],{face:'',label:{offset:[0,-15]}});
var l4 = board.create('segment', [i1,g1],);
var l5 = board.create('segment', [i1,g2],);


 



 

			

Triangle posted 3 weeks ago

Scroll to Top