Modeling2.html
From 2013.igem.org
(Difference between revisions)
Line 244: | Line 244: | ||
if (this.yone[counter] > 0) | if (this.yone[counter] > 0) | ||
if (this.ytwo[counter] > 0) | if (this.ytwo[counter] > 0) | ||
- | if (this.ytwo[counter] < 2) | + | if (this.ytwo[counter] < 2) { |
- | + | ||
odePart = odefunX(this.yone[counter], this.ytwo[counter]); | odePart = odefunX(this.yone[counter], this.ytwo[counter]); | ||
this.yone.push(- odePart[0]*dt + this.yone[counter]); | this.yone.push(- odePart[0]*dt + this.yone[counter]); | ||
this.ytwo.push(- odePart[1]*dt + this.ytwo[counter]); | this.ytwo.push(- odePart[1]*dt + this.ytwo[counter]); | ||
counter++; | counter++; | ||
+ | } | ||
+ | else{ | ||
+ | |||
+ | break; | ||
+ | } | ||
} | } | ||
this.yone.reverse(); | this.yone.reverse(); | ||
this.ytwo.reverse(); | this.ytwo.reverse(); | ||
+ | |||
+ | while (1===1){ | ||
+ | if (this.yone[counter] < 2 ) | ||
+ | if (this.yone[counter] > 0) | ||
+ | if (this.ytwo[counter] > 0) | ||
+ | if (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]);} | ||
+ | else{ | ||
+ | break; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
Revision as of 23:36, 27 September 2013