Modeling2.html

From 2013.igem.org

(Difference between revisions)
Line 225: Line 225:
     };
     };
 +
var odeSolution = function (icONE, icTWO) {
 +
    this.yone = [];
 +
    this.ytwo = [];
 +
    this.calculate = function(){
 +
    this.yone = [];
 +
    this.ytwo = [];
 +
 
 +
 +
    this.yone.push(icONE);
 +
    this.ytwo.push(icTWO);   
 +
    var counter = 0;
 +
 +
 +
    var odePart;
 +
    while (1===1){
 +
        if (this.yone[counter] < 2 )
 +
            if (this.yone[counter] > 0)
 +
                if (this.ytwo[counter] > 0)
 +
                    if (this.ytwo[counter] < 2)
 +
                        break;
 +
        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 23:33, 27 September 2013

iGEM