Point E and F are movable on side AB by Jsxgraph

var board = JXG.JSXGraph.initBoard('box1', {
boundingbox: [-22, 22, 22, -22],showNavigation:false, showcopyright: false, axis: false,
});
var p1 = board.create('point', [-18, -12.0],{face:'',fixed:true,label:{offset:[-15,10]}});
var p2 = board.create('point', [17, -12],{face:'',fixed:true});
var p3 = board.create('point', [3, 16],{face:'',fixed:true});
var l1 = board.create('segment', [p1, p2],);
var l2 = board.create('segment', [p2,p3],);
var l3 = board.create('segment', [p1,p3],);
var p4 = board.create('point', [-15, -8],{face:'',fixed:true,label:{offset:[-15,10]}});
var g1 = board.create('glider', [-2, 1.5, l1],{label:{offset:[0,-15]}});
var g2 = board.create('point', [function(){
var x =g1.X()-p1.X();
y = -18+(6-25/x);
return y;
}, -12],{face:'',label:{offset:[0,-15]}});
var l4 = board.create('segment', [g1, p4],);
var l5 = board.create('segment', [g2, p4],);
var a1 = board.create('angle', [p2, p1, p3],{visible:false});
var a2 = board.create('angle', [g2, p4, g1],{visible:false});
var t1 = board.create('text',[-10,-17,function(){var ang1 = a1.Value()/Math.PI*180;return "∠CAB = "+ang1.toFixed(2)+"°";}]);
var t2 = board.create('text',[-10,-20,function(){var ang2 = a2.Value()/Math.PI*180;return "∠EDF = "+ang2.toFixed(2)+"°";}]);

			

Triangle posted 2 weeks ago

Scroll to Top