A 5-circle incidence theorem: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="600" height="600">
<jsxgraph width="600" height="600">
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5]});
var board = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5]});
var A = [], s = [], B = [], k;
var A = [], s = [], B = [], c = [], k;


var attA = {name:'',strokeColor:'#7355ff',fillColor:'#7355ff'};
var attA = {name:'',strokeColor:'#7355ff',fillColor:'#7355ff'};
attA.name = "0";
attA.name = "0";
A[0] = brd.create('point', [2.5, -3], attA);
A[0] = board.create('point', [2.5, -3], attA);
attA.name = "1";
attA.name = "1";
A[1] = brd.create('point', [2, 4], attA);
A[1] = board.create('point', [2, 4], attA);
attA.name = "2";
attA.name = "2";
A[2] = brd.create('point', [-2.5, 3], attA);
A[2] = board.create('point', [-2.5, 3], attA);


attA.name = "3";
attA.name = "3";
A[3] = brd.create('point', [-4, -2], attA);
A[3] = board.create('point', [-4, -2], attA);


attA.name = "4";
attA.name = "4";
A[4] = brd.create('point', [0, -4], attA);
A[4] = board.create('point', [0, -4], attA);


for (k = 0; k < 5; k++) {
for (k = 0; k < 5; k++) {
   s[k] = brd.create('segment',[A[k], A[(k + 2) % 5]],{strokeColor:'blue',strokeWidth:1});
   s[k] = board.create('segment',[A[k], A[(k + 2) % 5]],{strokeColor:'blue',strokeWidth:1});
}
}


Line 24: Line 24:
var attB = {name:'',strokeColor:'#EA0000',fillColor:'#EA0000'};
var attB = {name:'',strokeColor:'#EA0000',fillColor:'#EA0000'};
for (k = 0; k < 5; k++) {
for (k = 0; k < 5; k++) {
   B[k] = brd.create('intersection', [s[k], s[(k-1+5)%5], 0], attB);
   B[k] = board.create('intersection', [s[k], s[(k-1+5)%5], 0], attB);
}
}
for (k = 0; k < 5; k++) {
  c[k] = board.create('circle', [A[k], B[k], A[(k+1)%5], 0]);
}




</jsxgraph>
</jsxgraph>

Revision as of 12:12, 13 August 2019