Difference between revisions of "Differential equations"

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

f(t,x)=

The underlying JavaScript code