Matrix multiplication: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 16: | Line 16: | ||
d = b1.createElement('slider',[-5.0,-4,10,-5,5,0],{name:'d'}); | d = b1.createElement('slider',[-5.0,-4,10,-5,5,0],{name:'d'}); | ||
v = b1.createElement('point',[ | v = b1.createElement('point',[2,2],{style:5,name:'v'}); | ||
w = b1.createElement('point',[-1 | w = b1.createElement('point',[-2,1],{style:5,name:'w'}); | ||
va = b1.createElement('line',['Ursprung',v],{straightFirst:false, straightLast:false, lastArrow:true}); | va = b1.createElement('line',['Ursprung',v],{straightFirst:false, straightLast:false, lastArrow:true}); | ||
wa = b1.createElement('line',['Ursprung',w],{straightFirst:false, straightLast:false, lastArrow:true}); | |||
b1.unsuspendUpdate(); | b1.unsuspendUpdate(); | ||
Line 27: | Line 26: | ||
b2.createElement('axis', [[0,0], [1,0]], {}); | b2.createElement('axis', [[0,0], [1,0]], {}); | ||
b2.createElement('axis', [[0,0], [0,1]], {}); | b2.createElement('axis', [[0,0], [0,1]], {}); | ||
v2 = b2.createElement('point',[ | |||
function() {return a.X()*v.X()+b.X()*v.Y();}, | |||
function() {return c.X()*v.X()+d.X()*v.Y();}],{style:5,name:'v'}); | |||
w2 = b2.createElement('point',[ | |||
function() {return a.X()*w.X()+b.X()*w.Y();}, | |||
function() {return c.X()*w.X()+d.X()*w.Y();}],{style:5,name:'w'}); | |||
va2 = b2.createElement('line',['Ursprung',v2],{straightFirst:false, straightLast:false, lastArrow:true}); | |||
wa2 = b2.createElement('line',['Ursprung',w2],{straightFirst:false, straightLast:false, lastArrow:true}); | |||
b2.unsuspendUpdate(); | b2.unsuspendUpdate(); | ||
Revision as of 09:52, 15 December 2008