The Multiplication Parabola: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 6: Line 6:
var g = brd.createElement('line',[a,b],{straightFirst:false,straightLast:false});
var g = brd.createElement('line',[a,b],{straightFirst:false,straightLast:false});
var p = brd.createElement('point',[function(){return 0.0;},function(){return -a.X()*b.X();}],{fixed:true});
var p = brd.createElement('point',[function(){return 0.0;},function(){return -a.X()*b.X();}],{fixed:true});
var t = brd.createElement('text',[1,7,function(){ return '-X(A)*X(B) = '+a.X().toFixed(2)+'*'+b.X().toFixed(2)+' = '+(-a.X()*b.X()).toFixed(2)+' = Y(C)';}]);
var t = brd.createElement('text',[-1.5,9,function(){ return '-X(A)*X(B) = '+a.X().toFixed(2)+'*'+b.X().toFixed(2)+' = '+(-a.X()*b.X()).toFixed(2)+' = Y(C)';}]);
</jsxgraph>
</jsxgraph>



Revision as of 12:57, 19 June 2009

The underlying JavaScript code

</jsxgraph>