Systems of differential equations: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 19: Line 19:
   var txt1 = JXG.GeonextParser.geonext2JS(document.getElementById("odeinput1").value);
   var txt1 = JXG.GeonextParser.geonext2JS(document.getElementById("odeinput1").value);
   var txt2 = JXG.GeonextParser.geonext2JS(document.getElementById("odeinput2").value);
   var txt2 = JXG.GeonextParser.geonext2JS(document.getElementById("odeinput2").value);
   f = new Function("x", "yy", "var y1 = yy[0], y1 = yy[1];  var z1 = " + txt1 + "; var z2 = " + txt2 + "; return [z1,z2];");
   f = new Function("x", "yy", "var y1 = yy[0], y2 = yy[1];  var z1 = " + txt1 + "; var z2 = " + txt2 + "; return [z1,z2];");
   brd.update();
   brd.update();
}
}

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)=