Five Circle Theorem: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 13: Line 13:
p[4] = brd.createElement('point',[4,0],{});
p[4] = brd.createElement('point',[4,0],{});


l[0] = brd.createElement('segment',[p[0],p[1]],{})
l[0] = brd.createElement('segment',[p[0],p[1]],{});
l[1] = brd.createElement('segment',[p[1],p[2]],{})
l[1] = brd.createElement('segment',[p[1],p[2]],{});
l[2] = brd.createElement('segment',[p[2],p[3]],{})
l[2] = brd.createElement('segment',[p[2],p[3]],{});
l[3] = brd.createElement('segment',[p[3],p[4]],{})
l[3] = brd.createElement('segment',[p[3],p[4]],{});
l[4] = brd.createElement('segment',[p[4],p[0]],{})
l[4] = brd.createElement('segment',[p[4],p[0]],{});


i[0] = brd.createElement('point',[brd.intersection(l[0],l[2],0)],{})
i[0] = brd.createElement('point',[brd.intersection(l[0],l[2],0)],{});
i[1] = brd.createElement('point',[brd.intersection(l[1],l[3],0)],{})
i[1] = brd.createElement('point',[brd.intersection(l[1],l[3],0)],{});
i[2] = brd.createElement('point',[brd.intersection(l[2],l[4],0)],{})
i[2] = brd.createElement('point',[brd.intersection(l[2],l[4],0)],{});
i[3] = brd.createElement('point',[brd.intersection(l[3],l[0],0)],{})
i[3] = brd.createElement('point',[brd.intersection(l[3],l[0],0)],{});
i[4] = brd.createElement('point',[brd.intersection(l[4],l[1],0)],{})
i[4] = brd.createElement('point',[brd.intersection(l[4],l[1],0)],{});


c[0] = brd.createElement('circumcircle',[p[0],i[0],i[2]],{strokeColor:['red','yellow']})
c[0] = brd.createElement('circumcircle',[p[0],i[0],i[2]],{});
c[1] = brd.createElement('circumcircle',[p[1],i[1],i[3]],{})
c[1] = brd.createElement('circumcircle',[p[1],i[1],i[3]],{});
c[2] = brd.createElement('circumcircle',[p[2],i[2],i[4]],{})
c[2] = brd.createElement('circumcircle',[p[2],i[2],i[4]],{});
c[3] = brd.createElement('circumcircle',[p[3],i[3],i[0]],{})
c[3] = brd.createElement('circumcircle',[p[3],i[3],i[0]],{});
c[4] = brd.createElement('circumcircle',[p[4],i[4],i[1]],{})
c[4] = brd.createElement('circumcircle',[p[4],i[4],i[1]],{});
for(k=0;k<5;k++) {
  c[k][1].setProperty({strokeColor:'gray'});
}


j[0] = brd.createElement('point',[brd.intersection(c[0][1],c[2][1],0)],{style:8})
j[0] = brd.createElement('point',[brd.intersection(c[0][1],c[2][1],0)],{style:8});
j[1] = brd.createElement('point',[brd.intersection(c[0][1],c[3][1],1)],{style:8})
j[1] = brd.createElement('point',[brd.intersection(c[0][1],c[3][1],1)],{style:8});
j[2] = brd.createElement('point',[brd.intersection(c[3][1],c[1][1],1)],{style:8})
j[2] = brd.createElement('point',[brd.intersection(c[3][1],c[1][1],1)],{style:8});
j[3] = brd.createElement('point',[brd.intersection(c[1][1],c[4][1],1)],{style:8})
j[3] = brd.createElement('point',[brd.intersection(c[1][1],c[4][1],1)],{style:8});
j[4] = brd.createElement('point',[brd.intersection(c[4][1],c[2][1],1)],{style:8})
j[4] = brd.createElement('point',[brd.intersection(c[4][1],c[2][1],1)],{style:8});


brd.createElement('circumcircle',[j[0],j[2],j[3]],{strokeColor:'red'})
brd.createElement('circumcircle',[j[0],j[2],j[3]],{strokeColor:'red'});




</jsxgraph>
</jsxgraph>

Revision as of 19:30, 16 September 2009