Systems of differential equations: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 27: Line 27:
}
}


var g1 = brd.createElement('curve', [[0],[0]], {strokeColor:'red', strokeWidth:'2px'});
var g1 = brd.createElement('curve', [[0],[0]], {strokeColor:'red', strokeWidth:'2px', name:'y_1'});
var g2 = brd.createElement('curve', [[0],[0]], {strokeColor:'black', strokeWidth:'2px'});
var g2 = brd.createElement('curve', [[0],[0]], {strokeColor:'black', strokeWidth:'2px', name:'y_2'});
g1.updateDataArray = function() {
g1.updateDataArray = function() {
     var data = ode();
     var data = ode();

Revision as of 08:51, 21 July 2010

Display solutions of the ordinary differential equation

[math]\displaystyle{ y_1'= f_1(x,y_1,y_2) }[/math]
[math]\displaystyle{ y_2'= f_2(x,y_1,y_2) }[/math]

with initial values [math]\displaystyle{ (x_0,y_1) }[/math], [math]\displaystyle{ (x_0,y_2) }[/math].

f1(x,y1,y2)=
f2(x,y1,y2)=