# Difference between revisions of "A 5-circle incidence theorem"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 1: | Line 1: | ||

<jsxgraph width="600" height="600"> | <jsxgraph width="600" height="600"> | ||

var board = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5]}); | var board = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5]}); | ||

− | var A = [], s = [], B = [], c = [], k; | + | var A = [], s = [], B = [], c = [], r = [], k; |

− | var attA = {name:'',strokeColor:'#7355ff',fillColor:'#7355ff'}; | + | var attA = {name:'',strokeColor: '#7355ff', fillColor: '#7355ff'}; |

attA.name = "0"; | attA.name = "0"; | ||

A[0] = board.create('point', [2.5, -3], attA); | A[0] = board.create('point', [2.5, -3], attA); | ||

Line 22: | Line 22: | ||

− | 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] = board.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); | ||

Line 30: | Line 30: | ||

for (k = 0; k < 5; k++) { | for (k = 0; k < 5; k++) { | ||

c[k] = board.create('circle', [A[k], B[k], A[(k+1)%5]], attC); | c[k] = board.create('circle', [A[k], B[k], A[(k+1)%5]], attC); | ||

+ | } | ||

+ | |||

+ | var attR = {strokeColor: '#aaaaaa', strokeWidth: 1}; | ||

+ | for (k = 0; k < 5; k++) { | ||

+ | r[k] = board.create('radicalaxis', [c[k], c[(k-1+5)%5]], attR); | ||

} | } | ||