Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 70: Line 70:
if(!fr1 || !fr2)
if(!fr1 || !fr2)
{
{
-
alert("MAJOR INTERPOLATION PROBLEMS!\nx1:"+x1+"\ny1:"+y1+"\nx2:"+x2+"\ny2:"+y2+"\nzs:"+z0+","+z1+","+z2+","+z3+","+z4+"\n("+x+","+y+")");
+
alert("MAJOR INTERPOLATION PROBLEMS!\nx1:"+x1+"\ny1:"+y1+"\nx2:"+x2+"\ny2:"+y2+"\nzs:"+z0+","+z1+","+z2+","+z3+"\n("+x+","+y+")");
}
}
return ((y-y1)/(y2-y1)*fr2 + (y2-y)/(y2-y1)*fr1);
return ((y-y1)/(y2-y1)*fr2 + (y2-y)/(y2-y1)*fr1);

Revision as of 04:20, 26 September 2011