Difference between revisions of "Dual lattice"

From JSXGraph Wiki
Jump to: navigation, search
Line 9: Line 9:
 
w1 = brd.create('arrow', [[0,0], function() {
 
w1 = brd.create('arrow', [[0,0], function() {
 
     var num = b1.X() * b2.Y() - b2.X() * b1.Y();
 
     var num = b1.X() * b2.Y() - b2.X() * b1.Y();
 
 
     return [b2.Y() / num,  -b2.X() / num];
 
     return [b2.Y() / num,  -b2.X() / num];
 +
}], {strokeColor: 'red'});
  
}], {strokeColor: 'red'});
+
w2 = brd.create('arrow', [[0,0], function() {
 +
    var num = b1.X() * b2.Y() - b2.X() * b1.Y();
 +
    return [-b1.Y() / num,  b1.X() / num];
 +
}], {strokeColor: 'black'});
  
  

Revision as of 16:07, 16 June 2016