Matrix multiplication II: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 17: Line 17:
   var t = b1.create('text',[-8,5,function(){ return 'Matrix=<br>|'+b1.round(a.Value(),2)+' '+b1.round(b.Value(),2)+'|'+'<br>'+'|'+b1.round(c.Value(),2)+' '+b1.round(d.Value(),2)+'|';}]);
   var t = b1.create('text',[-8,5,function(){ return 'Matrix=<br>|'+b1.round(a.Value(),2)+' '+b1.round(b.Value(),2)+'|'+'<br>'+'|'+b1.round(c.Value(),2)+' '+b1.round(d.Value(),2)+'|';}]);
   b1.unsuspendUpdate();
   b1.unsuspendUpdate();
  var t2 = b1.create('text',[7,5,function(){ return '&lambda; = |v'|/|v| = '
                + b1.round(JXG.Math.Geometry.distance([0,0],[v2.X(),v2.Y()])/JXG.Math.Geometry.distance([0,0],[v2.X(),v2.Y()])) ;}]);
  b1.unsuspendUpdate();
</jsxgraph>
</jsxgraph>


[[Category:Examples]]
[[Category:Examples]]

Revision as of 07:52, 25 March 2011