1. Modify the JavaScript code below
  2. Check/uncheck checkboxes
  3. Press [Run]
N = 100; // total number of data points x1 = new Array(N); // x protein concentration (uM) y1 = new Array(N); // y protein concentration (uM) z1 = new Array(N); // z protein concentration (uM) x2 = new Array(N); // x protein concentration (uM) y2 = new Array(N); // y protein concentration (uM) z2 = new Array(N); // z protein concentration (uM) z3 = new Array(N); // z protein concentration (uM) X1 = 10; // constant x1 protein concentration x1[0] = X1; // initial x protein concentration y1[0] = 0; // initial y protein concentration z1[0] = 0; // initial z protein concentration x2[0] = 0; // initial x protein concentration y2[0] = 0; // initial y protein concentration z2[0] = 0; // initial z protein concentration z3[0] = 0; // initial z protein concentration pX1Y1 = 0.2; // production parameter pX1Y1 pY1 = 0.9; // degradation/dilution parameter pY1 pX1Z1 = 3; // production parameter pX1Z1 pY1Z1 = 1.5; // production parameter pY1Z1 pZ1 = 0.9; // degradation/dilution parameter pZ1 pX1X2 = 0.5; // production parameter pX1X2 pY1X2 = 0.25; // production parameter pY1X2 pX2 = 0.9; // degradation/dilution parameter pX2 pX2Y2 = 0.2; // production parameter pX2Y2 pY2 = 0.9; // degradation/dilution parameter pY2 pX2Z2 = 0.5; // production parameter pX2Z2 pY2Z2 = 0.25; // production parameter pY2Z2 pZ2 = 0.9; // degradation/dilution parameter pZ2 pX2Z3 = 0.04; // production parameter pX2Z3 pY2Z3 = 0.04; // production parameter pY3Z3 pZ3 = 0.9; // degradation/dilution parameter pZ3 for (n = 1; n < N; n++) // N-1 loops (1 loop = 1 min) { x1[n] = X1; // x protein concentration // update y1 protein concentration y1[n] = pX1Y1*x1[n-1] + pY1*y1[n-1]; // update z1 protein concentration z1[n]= pX1Z1*x1[n-1] - pY1Z1*y1[n-1] + pZ1*z1[n-1]; // update x2 protein concentration x2[n]= pX1X2*x1[n-1] + pY1X2*y1[n-1] + pX2*x2[n-1]; // update y2 protein concentration y2[n] = pX2Y2*x2[n-1] + pY2*y2[n-1]; // update z2 protein concentration z2[n]= pX2Z2*x2[n-1] - pY2Z2*y2[n-1] + pZ2*z2[n-1]; // update z3 protein concentration z3[n]= pX2Z3*x2[n-1] + pY2Z3*y2[n-1] + pZ3*z3[n-1]; } // end of for loop