Differential equations: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 7: Line 7:
var brd = JXG.JSXGraph.initBoard('jxgbox', {axis:true, boundingbox:[-11,11,11,-11]});
var brd = JXG.JSXGraph.initBoard('jxgbox', {axis:true, boundingbox:[-11,11,11,-11]});
var P = brd.create('point',[0,1], {name:'(x_0,y_0)'});
var P = brd.create('point',[0,1], {name:'(x_0,y_0)'});
var f = function(t,xx) {
      var x = xx[0];
      y = (2-t)*x;
     
      return [y];
    };


function doIt() {
function doIt() {
Line 35: Line 29:
     }
     }
};
};
brd.update();
doIt();
</jsxgraph>
</jsxgraph>



Revision as of 14:15, 14 July 2010

f(t,x)=

The underlying JavaScript code