Team:Grenoble/script

From 2012.igem.org

(Difference between revisions)
Line 123: Line 123:
h=g*l
h=g*l
    }
    }
-
    if(d&&(h>d)){
+
    if(d&(h>d)){
 +
h=d;
 +
g=h*i
    }
    }
-
 
+
    if(f&(g>f)){
 +
g=f;
 +
h=g*l
 +
    }
 +
    h=h<0?0:h;
 +
    g=g<0?0:g;
 +
    return{w:k?Math.round(h):h,h:k?Math.round(g):g}
}
}
})
})

Revision as of 09:30, 12 July 2012