Differential equations: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<html>
<html>
<form>
<form>
f(t,x)=<input type="text" id="odeinput" value="3*x"><input type=button value="ok" onclick="doIt()">
f(t,x)=<input type="text" id="odeinput" value="(2-t)*x"><input type=button value="ok" onclick="doIt()">
</form>
</form>
</html>
</html>
Line 9: Line 9:
var f = function(t,xx) {
var f = function(t,xx) {
       var x = xx[0];
       var x = xx[0];
       y = 3*x;
       y = (2-t)*x;
        
        
       return [y];
       return [y];

Revision as of 12:13, 14 July 2010

f(t,x)=

The underlying JavaScript code