Dual lattice: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 5: Line 5:
     v1 = brd.create('arrow', [[0,0], b1], {strokeColor: 'black'}),   
     v1 = brd.create('arrow', [[0,0], b1], {strokeColor: 'black'}),   
     v2 = brd.create('arrow', [[0,0], b2], {strokeColor: 'red'}),
     v2 = brd.create('arrow', [[0,0], b2], {strokeColor: 'red'}),
     w1, w2;
     w1, w2, i, j;
 
 
for (i=-5;i<6;i++) for (j=-5;j<6;j++) {
  if (!(i==1&&j==0) && !(i==0&&j==1)) {
  p[i*11+j] = brd2.create('point',[
      function(x,y){ return function(){ return x*b3.X()+y*b4.X(); };}(i,j),
      function(x,y){ return function(){ return x*b3.Y()+y*b4.Y(); };}(i,j)
      ], {name:'',style:4});
}}


w1 = brd.create('arrow', [[0,0], function() {
w1 = brd.create('arrow', [[0,0], function() {

Revision as of 07:23, 17 June 2016