﻿ the longest altitude BE is equal to the median CD in length for solution

# the longest altitude BE is equal to the median CD in length for solution

						var board = JXG.JSXGraph.initBoard('box1', {
});

var p1 = board.create('point', [4.5, -6],{face:'',fixed:true,label:{offset:[10,-12]}});
var p2 = board.create('point', [-9, -6],{face:'',fixed:true,label:{offset:[-10,10]}});
var p3 = board.create('point',[3, 6.3],{face:'',fixed:true});
var l1 = board.create('segment', [p1, p2]);
var l2 = board.create('segment', [p2, p3]);
var l3 = board.create('segment', [p3, p1]);
var mp1 = board.create('midpoint', [p1, p2],{face:'',label:{offset:[-5,-12]}});
var l4 = board.create('segment', [p3, mp1],);
var pp1 = board.create('perpendicularpoint', [p2,l3],{face:''});
var l5 = board.create('segment', [p2, pp1]);

board.create('text',[-5,9, function(){ return "CD = "+ l4.L().toFixed(1);}]);

board.create('text',[-5,8, function(){ return "BE = "+ l5.L().toFixed(1);}]);
var pp2 = board.create('perpendicularpoint', [mp1, l3],{face:'',fixed:true,label:{offset:[10,0]}});
var l6 = board.create('segment', [mp1, pp2],{dash:2});
var pp3 = board.create('perpendicularpoint', [mp1, l2],{face:'',fixed:true,label:{offset:[-15,0]}});
var l7 = board.create('segment', [mp1, pp3],{dash:2});
var pp4 = board.create('perpendicularpoint', [p1, l2],{face:'',fixed:true,label:{offset:[-15,0]}});
var l8 = board.create('segment', [p1, pp4],{dash:2});


Scroll to Top