Difference between revisions of "Systems of differential equations"

From JSXGraph Wiki
Jump to navigationJump to search
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 10:51, 21 July 2010

Display solutions of the ordinary differential equation

[math] y_1'= f_1(x,y_1,y_2)[/math]
[math] y_2'= f_2(x,y_1,y_2)[/math]

with initial values [math](x_0,y_1)[/math], [math](x_0,y_2)[/math].

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