Menelaus's theorem: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 18: | Line 18: | ||
var cs = board.create('glider', [-3, 3.3, s3], {name: "c'"}); | var cs = board.create('glider', [-3, 3.3, s3], {name: "c'"}); | ||
var TV = function(p,q,t) { | |||
return p.Dist(t) / p.Dist(q); | |||
}; | |||
var txt = board.create('text', [-3, -3, 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); }]); | |||
</jsxgraph> | </jsxgraph> |