Difference between revisions of "Differential equations"

From JSXGraph Wiki
Jump to navigationJump to search
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 16:15, 14 July 2010

f(t,x)=

The underlying JavaScript code