Modeling2.html

From 2013.igem.org

(Difference between revisions)
Line 243: Line 243:
     var odePart;  
     var odePart;  
-
     while (this.yone[counter] < 2 && this.yone[counter] > 0 && this.ytwo[counter] > 0 && this.ytwo[counter] < 2){
+
      
-
        odePart = odefunX(this.yone[counter], this.ytwo[counter]);
+
-
        this.yone.push(- odePart[0]*dt + this.yone[counter]);
+
-
        this.ytwo.push(- odePart[1]*dt + this.ytwo[counter]);
+
-
        counter++;
+
-
    }
+
-
 
+
-
    this.yone.reverse();
+
-
    this.ytwo.reverse();
+
-
+
-
 
+
-
    while (this.yone[counter] < 2 && this.yone[counter] > 0.1 && this.ytwo[counter] > 0.1 && this.ytwo[counter] < 2){
+
-
        odePart = odefunX(this.yone[counter], this.ytwo[counter]);
+
-
        this.yone.push(odePart[0]*dt + this.yone[counter]);
+
-
        this.ytwo.push(odePart[1]*dt + this.ytwo[counter]);
+
-
        counter++;
+
-
    }
+
};
};
     this.plot = function(){
     this.plot = function(){

Revision as of 22:51, 27 September 2013

iGEM