Generated Code
The following is c code generated by the CellML API from this CellML file. (Back to language selection)
The raw code is available.
/* There are a total of 115 entries in the algebraic variable array. There are a total of 39 entries in each of the rate and state variable arrays. There are a total of 127 entries in the constant variable array. */ /* * ALGEBRAIC[22] is I_app in component Protocol (uA_per_uF). * VOI is time in component environment (msec). * CONSTANTS[0] is V_hold in component Protocol (mV). * CONSTANTS[1] is V_test in component Protocol (mV). * ALGEBRAIC[9] is V_clamp in component Protocol (mV). * STATES[0] is V_m in component membrane_potential (mV). * CONSTANTS[2] is R_clamp in component Protocol (uF_per_mS). * CONSTANTS[3] is epi in component parameters (dimensionless). * CONSTANTS[4] is R in component parameters (joule_per_kelvin_per_kilomole). * CONSTANTS[98] is Frdy in component parameters (coulomb_per_mole). * CONSTANTS[108] is Temp in component parameters (kelvin). * CONSTANTS[112] is FoRT in component parameters (per_mV). * CONSTANTS[5] is Cmem in component parameters (farad). * CONSTANTS[113] is Qpow in component parameters (dimensionless). * CONSTANTS[6] is cellLength in component parameters (um). * CONSTANTS[99] is cellRadius in component parameters (um). * CONSTANTS[7] is junctionLength in component parameters (um). * CONSTANTS[100] is junctionRadius in component parameters (um). * CONSTANTS[8] is distSLcyto in component parameters (um). * CONSTANTS[9] is distJuncSL in component parameters (um). * CONSTANTS[10] is DcaJuncSL in component parameters (cm2_per_sec). * CONSTANTS[11] is DcaSLcyto in component parameters (cm2_per_sec). * CONSTANTS[12] is DnaJuncSL in component parameters (cm2_per_sec). * CONSTANTS[13] is DnaSLcyto in component parameters (cm2_per_sec). * CONSTANTS[109] is Vcell in component parameters (liter). * CONSTANTS[114] is Vmyo in component parameters (liter). * CONSTANTS[115] is Vsr in component parameters (liter). * CONSTANTS[116] is Vsl in component parameters (liter). * CONSTANTS[117] is Vjunc in component parameters (liter). * CONSTANTS[110] is SAjunc in component parameters (um2). * CONSTANTS[111] is SAsl in component parameters (um2). * CONSTANTS[14] is J_ca_juncsl in component parameters (liters_per_msec). * CONSTANTS[15] is J_ca_slmyo in component parameters (liters_per_msec). * CONSTANTS[16] is J_na_juncsl in component parameters (liters_per_msec). * CONSTANTS[17] is J_na_slmyo in component parameters (liters_per_msec). * CONSTANTS[18] is Fjunc in component parameters (dimensionless). * CONSTANTS[101] is Fsl in component parameters (dimensionless). * CONSTANTS[19] is Fjunc_CaL in component parameters (dimensionless). * CONSTANTS[102] is Fsl_CaL in component parameters (dimensionless). * CONSTANTS[118] is Cli in component parameters (mM). * CONSTANTS[119] is Clo in component parameters (mM). * CONSTANTS[20] is Ko in component parameters (mM). * CONSTANTS[21] is Nao in component parameters (mM). * CONSTANTS[22] is Cao in component parameters (mM). * CONSTANTS[23] is Mgi in component parameters (mM). * ALGEBRAIC[26] is ena_junc in component parameters (mV). * ALGEBRAIC[30] is ena_sl in component parameters (mV). * ALGEBRAIC[32] is ek in component parameters (mV). * ALGEBRAIC[33] is eca_junc in component parameters (mV). * ALGEBRAIC[34] is eca_sl in component parameters (mV). * CONSTANTS[125] is ecl in component parameters (mV). * CONSTANTS[24] is GNa in component parameters (mS_per_uF). * CONSTANTS[25] is GNaB in component parameters (mS_per_uF). * CONSTANTS[26] is IbarNaK in component parameters (uA_per_uF). * CONSTANTS[27] is KmNaip in component parameters (mM). * CONSTANTS[28] is KmKo in component parameters (mM). * CONSTANTS[29] is Q10NaK in component parameters (dimensionless). * CONSTANTS[30] is Q10KmNai in component parameters (dimensionless). * CONSTANTS[31] is pNaK in component parameters (dimensionless). * CONSTANTS[32] is gkp in component parameters (mS_per_uF). * CONSTANTS[33] is GClCa in component parameters (mS_per_uF). * CONSTANTS[34] is GClB in component parameters (mS_per_uF). * CONSTANTS[35] is KdClCa in component parameters (mM). * CONSTANTS[36] is pNa in component parameters (cm_per_sec). * CONSTANTS[37] is pCa in component parameters (cm_per_sec). * CONSTANTS[38] is pK in component parameters (cm_per_sec). * CONSTANTS[39] is Q10CaL in component parameters (dimensionless). * CONSTANTS[40] is IbarNCX in component parameters (uA_per_uF). * CONSTANTS[41] is KmCai in component parameters (mM). * CONSTANTS[42] is KmCao in component parameters (mM). * CONSTANTS[43] is KmNai in component parameters (mM). * CONSTANTS[44] is KmNao in component parameters (mM). * CONSTANTS[45] is ksat in component parameters (dimensionless). * CONSTANTS[46] is nu in component parameters (dimensionless). * CONSTANTS[47] is Kdact in component parameters (mM). * CONSTANTS[48] is Q10NCX in component parameters (dimensionless). * CONSTANTS[49] is IbarSLCaP in component parameters (uA_per_uF). * CONSTANTS[50] is KmPCa in component parameters (mM). * CONSTANTS[51] is GCaB in component parameters (mS_per_uF). * CONSTANTS[52] is Q10SLCaP in component parameters (dimensionless). * CONSTANTS[53] is Q10SRCaP in component parameters (dimensionless). * CONSTANTS[54] is Vmax_SRCaP in component parameters (mM_per_msec). * CONSTANTS[55] is Kmf in component parameters (mM). * CONSTANTS[56] is Kmr in component parameters (mM). * CONSTANTS[57] is hillSRCaP in component parameters (dimensionless). * CONSTANTS[58] is ks in component parameters (per_msec). * CONSTANTS[59] is koCa in component parameters (per_mM2_per_msec). * CONSTANTS[60] is kom in component parameters (per_msec). * CONSTANTS[107] is kiCa in component parameters (per_mM_per_msec). * CONSTANTS[61] is kim in component parameters (per_msec). * CONSTANTS[62] is ec50SR in component parameters (mM). * CONSTANTS[63] is Bmax_Naj in component parameters (mM). * CONSTANTS[64] is Bmax_Nasl in component parameters (mM). * CONSTANTS[65] is koff_na in component parameters (per_msec). * CONSTANTS[66] is kon_na in component parameters (per_mM_per_msec). * CONSTANTS[67] is Bmax_TnClow in component parameters (mM). * CONSTANTS[68] is koff_tncl in component parameters (per_msec). * CONSTANTS[69] is kon_tncl in component parameters (per_mM_per_msec). * CONSTANTS[70] is Bmax_TnChigh in component parameters (mM). * CONSTANTS[71] is koff_tnchca in component parameters (per_msec). * CONSTANTS[72] is kon_tnchca in component parameters (per_mM_per_msec). * CONSTANTS[73] is koff_tnchmg in component parameters (per_msec). * CONSTANTS[74] is kon_tnchmg in component parameters (per_mM_per_msec). * CONSTANTS[75] is Bmax_CaM in component parameters (mM). * CONSTANTS[76] is koff_cam in component parameters (per_msec). * CONSTANTS[77] is kon_cam in component parameters (per_mM_per_msec). * CONSTANTS[78] is Bmax_myosin in component parameters (mM). * CONSTANTS[79] is koff_myoca in component parameters (per_msec). * CONSTANTS[80] is kon_myoca in component parameters (per_mM_per_msec). * CONSTANTS[81] is koff_myomg in component parameters (per_msec). * CONSTANTS[82] is kon_myomg in component parameters (per_mM_per_msec). * CONSTANTS[83] is Bmax_SR in component parameters (mM). * CONSTANTS[84] is koff_sr in component parameters (per_msec). * CONSTANTS[85] is kon_sr in component parameters (per_mM_per_msec). * CONSTANTS[120] is Bmax_SLlowsl in component parameters (mM). * CONSTANTS[121] is Bmax_SLlowj in component parameters (mM). * CONSTANTS[86] is koff_sll in component parameters (per_msec). * CONSTANTS[87] is kon_sll in component parameters (per_mM_per_msec). * CONSTANTS[122] is Bmax_SLhighsl in component parameters (mM). * CONSTANTS[123] is Bmax_SLhighj in component parameters (mM). * CONSTANTS[88] is koff_slh in component parameters (per_msec). * CONSTANTS[89] is kon_slh in component parameters (per_mM_per_msec). * CONSTANTS[124] is Bmax_Csqn in component parameters (mM). * CONSTANTS[90] is koff_csqn in component parameters (per_msec). * CONSTANTS[91] is kon_csqn in component parameters (per_mM_per_msec). * STATES[1] is Na_j in component Na_Concentrations (mM). * STATES[2] is Na_sl in component Na_Concentrations (mM). * STATES[3] is K_i in component K_Concentration (mM). * STATES[4] is Ca_j in component Ca_Concentrations (mM). * STATES[5] is Ca_sl in component Ca_Concentrations (mM). * ALGEBRAIC[0] is mss in component I_Na (dimensionless). * ALGEBRAIC[11] is taum in component I_Na (msec). * ALGEBRAIC[1] is ah in component I_Na (dimensionless). * ALGEBRAIC[12] is bh in component I_Na (dimensionless). * ALGEBRAIC[24] is tauh in component I_Na (msec). * ALGEBRAIC[28] is hss in component I_Na (dimensionless). * ALGEBRAIC[2] is aj in component I_Na (dimensionless). * ALGEBRAIC[13] is bj in component I_Na (dimensionless). * ALGEBRAIC[25] is tauj in component I_Na (msec). * ALGEBRAIC[29] is jss in component I_Na (dimensionless). * STATES[6] is m in component I_Na (dimensionless). * STATES[7] is h in component I_Na (dimensionless). * STATES[8] is j in component I_Na (dimensionless). * ALGEBRAIC[35] is I_Na_junc in component I_Na (uA_per_uF). * ALGEBRAIC[36] is I_Na_sl in component I_Na (uA_per_uF). * ALGEBRAIC[37] is I_Na in component I_Na (uA_per_uF). * ALGEBRAIC[38] is I_nabk_junc in component I_NaBK (uA_per_uF). * ALGEBRAIC[39] is I_nabk_sl in component I_NaBK (uA_per_uF). * ALGEBRAIC[40] is I_nabk in component I_NaBK (uA_per_uF). * CONSTANTS[103] is sigma in component I_NaK (dimensionless). * ALGEBRAIC[41] is fnak in component I_NaK (dimensionless). * ALGEBRAIC[42] is I_nak_junc in component I_NaK (uA_per_uF). * ALGEBRAIC[43] is I_nak_sl in component I_NaK (uA_per_uF). * ALGEBRAIC[44] is I_nak in component I_NaK (uA_per_uF). * CONSTANTS[104] is gkr in component I_Kr (mS_per_uF). * ALGEBRAIC[3] is xrss in component I_Kr (dimensionless). * ALGEBRAIC[14] is tauxr in component I_Kr (msec). * STATES[9] is x_kr in component I_Kr (dimensionless). * ALGEBRAIC[45] is rkr in component I_Kr (dimensionless). * ALGEBRAIC[46] is I_kr in component I_Kr (uA_per_uF). * ALGEBRAIC[47] is kp_kp in component I_Kp (dimensionless). * ALGEBRAIC[48] is I_kp_junc in component I_Kp (uA_per_uF). * ALGEBRAIC[49] is I_kp_sl in component I_Kp (uA_per_uF). * ALGEBRAIC[50] is I_kp in component I_Kp (uA_per_uF). * ALGEBRAIC[51] is eks in component I_Ks (mV). * CONSTANTS[92] is gks_junc in component I_Ks (mS_per_uF). * CONSTANTS[93] is gks_sl in component I_Ks (mS_per_uF). * ALGEBRAIC[4] is xsss in component I_Ks (dimensionless). * ALGEBRAIC[15] is tauxs in component I_Ks (msec). * STATES[10] is x_ks in component I_Ks (dimensionless). * ALGEBRAIC[52] is I_ks_junc in component I_Ks (uA_per_uF). * ALGEBRAIC[53] is I_ks_sl in component I_Ks (uA_per_uF). * ALGEBRAIC[54] is I_ks in component I_Ks (uA_per_uF). * STATES[11] is Na_i in component Na_Concentrations (mM). * CONSTANTS[105] is GtoSlow in component I_to (mS_per_uF). * CONSTANTS[106] is GtoFast in component I_to (mS_per_uF). * ALGEBRAIC[5] is xtoss in component I_to (dimensionless). * ALGEBRAIC[6] is ytoss in component I_to (dimensionless). * ALGEBRAIC[16] is tauxtos in component I_to (msec). * ALGEBRAIC[17] is tauytos in component I_to (msec). * STATES[12] is x_to_s in component I_to (dimensionless). * STATES[13] is y_to_s in component I_to (dimensionless). * ALGEBRAIC[55] is I_tos in component I_to (uA_per_uF). * ALGEBRAIC[18] is tauxtof in component I_to (msec). * ALGEBRAIC[19] is tauytof in component I_to (msec). * STATES[14] is x_to_f in component I_to (dimensionless). * STATES[15] is y_to_f in component I_to (dimensionless). * ALGEBRAIC[56] is I_tof in component I_to (uA_per_uF). * ALGEBRAIC[57] is I_to in component I_to (uA_per_uF). * ALGEBRAIC[58] is aki in component I_Ki (dimensionless). * ALGEBRAIC[59] is bki in component I_Ki (dimensionless). * ALGEBRAIC[60] is kiss in component I_Ki (dimensionless). * ALGEBRAIC[61] is I_ki in component I_Ki (uA_per_uF). * ALGEBRAIC[62] is I_ClCa_junc in component I_ClCa (uA_per_uF). * ALGEBRAIC[63] is I_ClCa_sl in component I_ClCa (uA_per_uF). * ALGEBRAIC[64] is I_ClCa in component I_ClCa (uA_per_uF). * ALGEBRAIC[65] is I_Clbk in component I_ClCa (uA_per_uF). * ALGEBRAIC[7] is fss in component I_Ca (dimensionless). * ALGEBRAIC[8] is dss in component I_Ca (dimensionless). * ALGEBRAIC[20] is taud in component I_Ca (msec). * ALGEBRAIC[21] is tauf in component I_Ca (msec). * STATES[16] is d in component I_Ca (dimensionless). * STATES[17] is f in component I_Ca (dimensionless). * STATES[18] is f_Ca_Bj in component I_Ca (dimensionless). * STATES[19] is f_Ca_Bsl in component I_Ca (dimensionless). * CONSTANTS[94] is fcaCaMSL in component I_Ca (dimensionless). * CONSTANTS[95] is fcaCaj in component I_Ca (dimensionless). * ALGEBRAIC[66] is ibarca_j in component I_Ca (uA_per_uF). * ALGEBRAIC[67] is ibarca_sl in component I_Ca (uA_per_uF). * ALGEBRAIC[68] is ibark in component I_Ca (uA_per_uF). * ALGEBRAIC[69] is ibarna_j in component I_Ca (uA_per_uF). * ALGEBRAIC[70] is ibarna_sl in component I_Ca (uA_per_uF). * ALGEBRAIC[71] is I_Ca_junc in component I_Ca (uA_per_uF). * ALGEBRAIC[72] is I_Ca_sl in component I_Ca (uA_per_uF). * ALGEBRAIC[73] is I_Ca in component I_Ca (uA_per_uF). * ALGEBRAIC[74] is I_CaK in component I_Ca (uA_per_uF). * ALGEBRAIC[75] is I_CaNa_junc in component I_Ca (uA_per_uF). * ALGEBRAIC[76] is I_CaNa_sl in component I_Ca (uA_per_uF). * ALGEBRAIC[77] is I_CaNa in component I_Ca (uA_per_uF). * ALGEBRAIC[79] is I_Catot in component I_Ca (uA_per_uF). * ALGEBRAIC[78] is Ka_junc in component I_NCX (dimensionless). * ALGEBRAIC[80] is Ka_sl in component I_NCX (dimensionless). * ALGEBRAIC[81] is s1_junc in component I_NCX (mM4). * ALGEBRAIC[82] is s1_sl in component I_NCX (mM4). * ALGEBRAIC[83] is s2_junc in component I_NCX (mM4). * ALGEBRAIC[84] is s3_junc in component I_NCX (mM4). * ALGEBRAIC[85] is s2_sl in component I_NCX (mM4). * ALGEBRAIC[86] is s3_sl in component I_NCX (mM4). * ALGEBRAIC[87] is I_ncx_junc in component I_NCX (uA_per_uF). * ALGEBRAIC[88] is I_ncx_sl in component I_NCX (uA_per_uF). * ALGEBRAIC[90] is I_ncx in component I_NCX (uA_per_uF). * ALGEBRAIC[91] is I_pca_junc in component I_PCa (uA_per_uF). * ALGEBRAIC[93] is I_pca_sl in component I_PCa (uA_per_uF). * ALGEBRAIC[94] is I_pca in component I_PCa (uA_per_uF). * ALGEBRAIC[95] is I_cabk_junc in component I_CaBK (uA_per_uF). * ALGEBRAIC[96] is I_cabk_sl in component I_CaBK (uA_per_uF). * ALGEBRAIC[97] is I_cabk in component I_CaBK (uA_per_uF). * CONSTANTS[96] is MaxSR in component SR_Fluxes (dimensionless). * CONSTANTS[97] is MinSR in component SR_Fluxes (dimensionless). * ALGEBRAIC[10] is kCaSR in component SR_Fluxes (dimensionless). * ALGEBRAIC[23] is koSRCa in component SR_Fluxes (per_mM2_per_msec). * ALGEBRAIC[27] is kiSRCa in component SR_Fluxes (per_mM_per_msec). * ALGEBRAIC[31] is RI in component SR_Fluxes (mM). * STATES[20] is Ry_Rr in component SR_Fluxes (mM). * STATES[21] is Ry_Ro in component SR_Fluxes (mM). * STATES[22] is Ry_Ri in component SR_Fluxes (mM). * ALGEBRAIC[98] is J_SRCarel in component SR_Fluxes (mM_per_msec). * ALGEBRAIC[99] is J_serca in component SR_Fluxes (mM_per_msec). * ALGEBRAIC[100] is J_SRleak in component SR_Fluxes (mM_per_msec). * STATES[23] is Ca_sr in component SR_Ca_Concentrations (mM). * STATES[24] is Ca_i in component Ca_Concentrations (mM). * STATES[25] is Na_Bj in component Na_Buffers (mM). * STATES[26] is Na_Bsl in component Na_Buffers (mM). * ALGEBRAIC[102] is dNa_Bj_dt in component Na_Buffers (mM_per_msec). * ALGEBRAIC[103] is dNa_Bsl_dt in component Na_Buffers (mM_per_msec). * STATES[27] is Tn_CL in component Cytosolic_Ca_Buffers (mM). * STATES[28] is Tn_CHc in component Cytosolic_Ca_Buffers (mM). * STATES[29] is Tn_CHm in component Cytosolic_Ca_Buffers (mM). * STATES[30] is CaM in component Cytosolic_Ca_Buffers (mM). * STATES[31] is Myo_c in component Cytosolic_Ca_Buffers (mM). * STATES[32] is Myo_m in component Cytosolic_Ca_Buffers (mM). * STATES[33] is SRB in component Cytosolic_Ca_Buffers (mM). * ALGEBRAIC[101] is J_CaB_cytosol in component Cytosolic_Ca_Buffers (mM_per_msec). * STATES[34] is SLL_j in component Junctional_and_SL_Ca_Buffers (mM). * STATES[35] is SLL_sl in component Junctional_and_SL_Ca_Buffers (mM). * STATES[36] is SLH_j in component Junctional_and_SL_Ca_Buffers (mM). * STATES[37] is SLH_sl in component Junctional_and_SL_Ca_Buffers (mM). * ALGEBRAIC[104] is J_CaB_junction in component Junctional_and_SL_Ca_Buffers (mM_per_msec). * ALGEBRAIC[105] is J_CaB_sl in component Junctional_and_SL_Ca_Buffers (mM_per_msec). * STATES[38] is Csqn_b in component SR_Ca_Concentrations (mM). * ALGEBRAIC[106] is I_Na_tot_junc in component Na_Concentrations (uA_per_uF). * ALGEBRAIC[107] is I_Na_tot_sl in component Na_Concentrations (uA_per_uF). * ALGEBRAIC[92] is I_Na_tot_sl2 in component Na_Concentrations (uA_per_uF). * ALGEBRAIC[89] is I_Na_tot_junc2 in component Na_Concentrations (uA_per_uF). * ALGEBRAIC[108] is I_K_tot in component K_Concentration (uA_per_uF). * ALGEBRAIC[109] is I_Ca_tot_junc in component Ca_Concentrations (uA_per_uF). * ALGEBRAIC[110] is I_Ca_tot_sl in component Ca_Concentrations (uA_per_uF). * ALGEBRAIC[111] is I_Na_tot in component membrane_potential (uA_per_uF). * ALGEBRAIC[112] is I_Cl_tot in component membrane_potential (uA_per_uF). * ALGEBRAIC[113] is I_Ca_tot in component membrane_potential (uA_per_uF). * ALGEBRAIC[114] is I_tot in component membrane_potential (uA_per_uF). * RATES[6] is d/dt m in component I_Na (dimensionless). * RATES[7] is d/dt h in component I_Na (dimensionless). * RATES[8] is d/dt j in component I_Na (dimensionless). * RATES[9] is d/dt x_kr in component I_Kr (dimensionless). * RATES[10] is d/dt x_ks in component I_Ks (dimensionless). * RATES[12] is d/dt x_to_s in component I_to (dimensionless). * RATES[13] is d/dt y_to_s in component I_to (dimensionless). * RATES[14] is d/dt x_to_f in component I_to (dimensionless). * RATES[15] is d/dt y_to_f in component I_to (dimensionless). * RATES[16] is d/dt d in component I_Ca (dimensionless). * RATES[17] is d/dt f in component I_Ca (dimensionless). * RATES[18] is d/dt f_Ca_Bj in component I_Ca (dimensionless). * RATES[19] is d/dt f_Ca_Bsl in component I_Ca (dimensionless). * RATES[20] is d/dt Ry_Rr in component SR_Fluxes (mM). * RATES[21] is d/dt Ry_Ro in component SR_Fluxes (mM). * RATES[22] is d/dt Ry_Ri in component SR_Fluxes (mM). * RATES[25] is d/dt Na_Bj in component Na_Buffers (mM). * RATES[26] is d/dt Na_Bsl in component Na_Buffers (mM). * RATES[27] is d/dt Tn_CL in component Cytosolic_Ca_Buffers (mM). * RATES[28] is d/dt Tn_CHc in component Cytosolic_Ca_Buffers (mM). * RATES[29] is d/dt Tn_CHm in component Cytosolic_Ca_Buffers (mM). * RATES[30] is d/dt CaM in component Cytosolic_Ca_Buffers (mM). * RATES[31] is d/dt Myo_c in component Cytosolic_Ca_Buffers (mM). * RATES[32] is d/dt Myo_m in component Cytosolic_Ca_Buffers (mM). * RATES[33] is d/dt SRB in component Cytosolic_Ca_Buffers (mM). * RATES[34] is d/dt SLL_j in component Junctional_and_SL_Ca_Buffers (mM). * RATES[35] is d/dt SLL_sl in component Junctional_and_SL_Ca_Buffers (mM). * RATES[36] is d/dt SLH_j in component Junctional_and_SL_Ca_Buffers (mM). * RATES[37] is d/dt SLH_sl in component Junctional_and_SL_Ca_Buffers (mM). * RATES[38] is d/dt Csqn_b in component SR_Ca_Concentrations (mM). * RATES[23] is d/dt Ca_sr in component SR_Ca_Concentrations (mM). * RATES[1] is d/dt Na_j in component Na_Concentrations (mM). * RATES[2] is d/dt Na_sl in component Na_Concentrations (mM). * RATES[11] is d/dt Na_i in component Na_Concentrations (mM). * RATES[3] is d/dt K_i in component K_Concentration (mM). * RATES[4] is d/dt Ca_j in component Ca_Concentrations (mM). * RATES[5] is d/dt Ca_sl in component Ca_Concentrations (mM). * RATES[24] is d/dt Ca_i in component Ca_Concentrations (mM). * RATES[0] is d/dt V_m in component membrane_potential (mV). */ void initConsts(double* CONSTANTS, double* RATES, double *STATES) { CONSTANTS[0] = -40; CONSTANTS[1] = 50; STATES[0] = -8.09763e1; CONSTANTS[2] = 0.02; STATES[1] = 9.06; STATES[2] = 9.06; STATES[3] = 120; STATES[4] = 1.737475e-4; STATES[5] = 1.031812e-4; STATES[6] = 1.405627e-3; STATES[7] = 9.867005e-1; STATES[8] = 9.91562e-1; STATES[9] = 8.641386e-3; STATES[10] = 5.412034e-3; STATES[11] = 9.06; STATES[12] = 4.051574e-3; STATES[13] = 9.945511e-1; STATES[14] = 4.051574e-3; STATES[15] = 9.945511e-1; STATES[16] = 7.175662e-6; STATES[17] = 1.000681; STATES[18] = 2.421991e-2; STATES[19] = 1.452605e-2; STATES[20] = 8.884332e-1; STATES[21] = 8.156628e-7; STATES[22] = 1.024274e-7; STATES[23] = 0.1e-1; STATES[24] = 8.597401e-5; STATES[25] = 3.539892; STATES[26] = 7.720854e-1; STATES[27] = 8.773191e-3; STATES[28] = 1.078283e-1; STATES[29] = 1.524002e-2; STATES[30] = 2.911916e-4; STATES[31] = 1.298754e-3; STATES[32] = 1.381982e-1; STATES[33] = 2.143165e-3; STATES[34] = 9.566355e-3; STATES[35] = 1.110363e-1; STATES[36] = 7.347888e-3; STATES[37] = 7.297378e-2; STATES[38] = 1.242988; CONSTANTS[3] = 1.00000; CONSTANTS[4] = 8314.00; CONSTANTS[5] = 1.38100e-10; CONSTANTS[6] = 100.000; CONSTANTS[7] = 0.160000; CONSTANTS[8] = 0.450000; CONSTANTS[9] = 0.500000; CONSTANTS[10] = 1.64000e-06; CONSTANTS[11] = 1.22000e-06; CONSTANTS[12] = 1.09000e-05; CONSTANTS[13] = 1.79000e-05; CONSTANTS[14] = 8.24130e-13; CONSTANTS[15] = 3.27430e-12; CONSTANTS[16] = 1.83130e-14; CONSTANTS[17] = 1.63860e-12; CONSTANTS[18] = 0.110000; CONSTANTS[19] = 0.900000; CONSTANTS[20] = 5.40000; CONSTANTS[21] = 140.000; CONSTANTS[22] = 1.80000; CONSTANTS[23] = 1.00000; CONSTANTS[24] = 23.0000; CONSTANTS[25] = 0.000597000; CONSTANTS[26] = 1.00000*1.80000; CONSTANTS[27] = 11.0000; CONSTANTS[28] = 1.50000; CONSTANTS[29] = 1.63000; CONSTANTS[30] = 1.39000; CONSTANTS[31] = 0.0183300; CONSTANTS[32] = 2.00000*0.00100000; CONSTANTS[33] = 0.500000*0.109625; CONSTANTS[34] = 1.00000*0.00900000; CONSTANTS[35] = 0.100000; CONSTANTS[36] = 0.500000*1.50000e-08; CONSTANTS[37] = 0.500000*0.000540000; CONSTANTS[38] = 0.500000*2.70000e-07; CONSTANTS[39] = 1.80000; CONSTANTS[40] = 1.00000*4.50000; CONSTANTS[41] = 0.00359000; CONSTANTS[42] = 1.30000; CONSTANTS[43] = 12.2900; CONSTANTS[44] = 87.5000; CONSTANTS[45] = 0.320000; CONSTANTS[46] = 0.270000; CONSTANTS[47] = 0.000150000; CONSTANTS[48] = 1.57000; CONSTANTS[49] = 0.0673000; CONSTANTS[50] = 0.000500000; CONSTANTS[51] = 0.000551300; CONSTANTS[52] = 2.35000; CONSTANTS[53] = 2.60000; CONSTANTS[54] = 0.00531140; CONSTANTS[55] = 0.000246000; CONSTANTS[56] = 1.70000; CONSTANTS[57] = 1.78700; CONSTANTS[58] = 25.0000; CONSTANTS[59] = 10.0000; CONSTANTS[60] = 0.0600000; CONSTANTS[61] = 0.00500000; CONSTANTS[62] = 0.450000; CONSTANTS[63] = 7.56100; CONSTANTS[64] = 1.65000; CONSTANTS[65] = 0.00100000; CONSTANTS[66] = 0.000100000; CONSTANTS[67] = 0.0700000; CONSTANTS[68] = 0.0196000; CONSTANTS[69] = 32.7000; CONSTANTS[70] = 0.140000; CONSTANTS[71] = 3.20000e-05; CONSTANTS[72] = 2.37000; CONSTANTS[73] = 0.00333000; CONSTANTS[74] = 0.00300000; CONSTANTS[75] = 0.0240000; CONSTANTS[76] = 0.238000; CONSTANTS[77] = 34.0000; CONSTANTS[78] = 0.140000; CONSTANTS[79] = 0.000460000; CONSTANTS[80] = 13.8000; CONSTANTS[81] = 5.70000e-05; CONSTANTS[82] = 0.0157000; CONSTANTS[83] = 19.0000*0.000900000; CONSTANTS[84] = 0.0600000; CONSTANTS[85] = 100.000; CONSTANTS[86] = 1.30000; CONSTANTS[87] = 100.000; CONSTANTS[88] = 0.0300000; CONSTANTS[89] = 100.000; CONSTANTS[90] = 65.0000; CONSTANTS[91] = 100.000; CONSTANTS[92] = 0.00350000; CONSTANTS[93] = 0.00350000; CONSTANTS[94] = 0.00000; CONSTANTS[95] = 0.00000; CONSTANTS[96] = 15.0000; CONSTANTS[97] = 1.00000; CONSTANTS[126] = 0.00000; CONSTANTS[98] = 96485.0; CONSTANTS[99] = 10.2500; CONSTANTS[100] = 0.0150000; CONSTANTS[101] = 1.00000 - CONSTANTS[18]; CONSTANTS[102] = 1.00000 - CONSTANTS[19]; CONSTANTS[103] = (exp(CONSTANTS[21]/67.3000) - 1.00000)/7.00000; CONSTANTS[104] = 0.0350000* pow((CONSTANTS[20]/5.40000), 1.0 / 2); CONSTANTS[105] = (CONSTANTS[3]==1.00000 ? 1.00000*0.130000*0.120000 : 0.130000*0.300000*0.964000); CONSTANTS[106] = (CONSTANTS[3]==1.00000 ? 1.00000*0.130000*0.880000 : 0.130000*0.300000*0.0360000); CONSTANTS[107] = 0.500000; CONSTANTS[108] = 310.000; CONSTANTS[109] = 3.14159265358979*pow(CONSTANTS[99], 2.00000)*CONSTANTS[6]*1.00000e-15; CONSTANTS[110] = 20150.0* 3.14159265358979*2.00000*CONSTANTS[7]*CONSTANTS[100]; CONSTANTS[111] = 3.14159265358979*2.00000*CONSTANTS[99]*CONSTANTS[6]; CONSTANTS[112] = CONSTANTS[98]/( CONSTANTS[4]*CONSTANTS[108]); CONSTANTS[113] = (CONSTANTS[108] - 310.000)/10.0000; CONSTANTS[114] = 0.650000*CONSTANTS[109]; CONSTANTS[115] = 0.0350000*CONSTANTS[109]; CONSTANTS[116] = 0.0200000*CONSTANTS[109]; CONSTANTS[117] = 0.0539000*0.0100000*CONSTANTS[109]; CONSTANTS[118] = 15.0000; CONSTANTS[119] = 150.000; CONSTANTS[120] = ( 0.0374000*CONSTANTS[114])/CONSTANTS[116]; CONSTANTS[121] = (( 0.00460000*CONSTANTS[114])/CONSTANTS[117])*0.100000; CONSTANTS[122] = ( 0.0134000*CONSTANTS[114])/CONSTANTS[116]; CONSTANTS[123] = (( 0.00165000*CONSTANTS[114])/CONSTANTS[117])*0.100000; CONSTANTS[124] = ( 0.140000*CONSTANTS[114])/CONSTANTS[115]; CONSTANTS[125] = (1.00000/CONSTANTS[112])*log(CONSTANTS[118]/CONSTANTS[119]); } void computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { RATES[3] = CONSTANTS[126]; RATES[18] = (( 1.70000*STATES[4])/1.00000)*(1.00000 - STATES[18]) - 0.0119000*STATES[18]; RATES[19] = (( 1.70000*STATES[5])/1.00000)*(1.00000 - STATES[19]) - 0.0119000*STATES[19]; RATES[27] = CONSTANTS[69]*STATES[24]*(CONSTANTS[67] - STATES[27]) - CONSTANTS[68]*STATES[27]; RATES[28] = CONSTANTS[72]*STATES[24]*((CONSTANTS[70] - STATES[28]) - STATES[29]) - CONSTANTS[71]*STATES[28]; RATES[29] = CONSTANTS[74]*CONSTANTS[23]*((CONSTANTS[70] - STATES[28]) - STATES[29]) - CONSTANTS[73]*STATES[29]; RATES[30] = CONSTANTS[77]*STATES[24]*(CONSTANTS[75] - STATES[30]) - CONSTANTS[76]*STATES[30]; RATES[31] = CONSTANTS[80]*STATES[24]*((CONSTANTS[78] - STATES[31]) - STATES[32]) - CONSTANTS[79]*STATES[31]; RATES[32] = CONSTANTS[82]*CONSTANTS[23]*((CONSTANTS[78] - STATES[31]) - STATES[32]) - CONSTANTS[81]*STATES[32]; RATES[33] = CONSTANTS[85]*STATES[24]*(CONSTANTS[83] - STATES[33]) - CONSTANTS[84]*STATES[33]; RATES[34] = CONSTANTS[87]*STATES[4]*(CONSTANTS[121] - STATES[34]) - CONSTANTS[86]*STATES[34]; RATES[35] = CONSTANTS[87]*STATES[5]*(CONSTANTS[120] - STATES[35]) - CONSTANTS[86]*STATES[35]; RATES[36] = CONSTANTS[89]*STATES[4]*(CONSTANTS[123] - STATES[36]) - CONSTANTS[88]*STATES[36]; RATES[37] = CONSTANTS[89]*STATES[5]*(CONSTANTS[122] - STATES[37]) - CONSTANTS[88]*STATES[37]; RATES[38] = CONSTANTS[91]*STATES[23]*(CONSTANTS[124] - STATES[38]) - CONSTANTS[90]*STATES[38]; RATES[11] = (CONSTANTS[17]/CONSTANTS[114])*(STATES[2] - STATES[11]); ALGEBRAIC[0] = 1.00000/pow(1.00000+exp(- (56.8600+STATES[0])/9.03000), 2.00000); ALGEBRAIC[11] = 0.129200*exp(- pow((STATES[0]+45.7900)/15.5400, 2.00000))+ 0.0648700*exp(- pow((STATES[0] - 4.82300)/51.1200, 2.00000)); RATES[6] = (ALGEBRAIC[0] - STATES[6])/ALGEBRAIC[11]; ALGEBRAIC[3] = 1.00000/(1.00000+exp(- (STATES[0]+10.0000)/5.00000)); ALGEBRAIC[14] = ( (550.000/(1.00000+exp((- 22.0000 - STATES[0])/9.00000)))*6.00000)/(1.00000+exp((STATES[0] - - 11.0000)/9.00000))+230.000/(1.00000+exp((STATES[0] - - 40.0000)/20.0000)); RATES[9] = (ALGEBRAIC[3] - STATES[9])/ALGEBRAIC[14]; ALGEBRAIC[4] = 1.00000/(1.00000+exp(- (STATES[0]+3.80000)/14.2500)); ALGEBRAIC[15] = 990.100/(1.00000+exp(- (STATES[0]+2.43600)/14.1200)); RATES[10] = (ALGEBRAIC[4] - STATES[10])/ALGEBRAIC[15]; ALGEBRAIC[5] = 1.00000/(1.00000+exp(- (STATES[0] - 19.0000)/13.0000)); ALGEBRAIC[16] = 9.00000/(1.00000+exp((STATES[0]+3.00000)/15.0000))+0.500000; RATES[12] = (ALGEBRAIC[5] - STATES[12])/ALGEBRAIC[16]; ALGEBRAIC[6] = 1.00000/(1.00000+exp((STATES[0]+19.5000)/5.00000)); ALGEBRAIC[17] = 800.000/(1.00000+exp((STATES[0]+60.0000)/10.0000))+30.0000; RATES[13] = (ALGEBRAIC[6] - STATES[13])/ALGEBRAIC[17]; ALGEBRAIC[18] = 8.50000*exp(- pow((STATES[0]+45.0000)/50.0000, 2.00000))+0.500000; RATES[14] = (ALGEBRAIC[5] - STATES[14])/ALGEBRAIC[18]; ALGEBRAIC[19] = 85.0000*exp(- pow(STATES[0]+40.0000, 2.00000)/220.000)+7.00000; RATES[15] = (ALGEBRAIC[6] - STATES[15])/ALGEBRAIC[19]; ALGEBRAIC[8] = 1.00000/(1.00000+exp(- (STATES[0]+5.00000)/6.00000)); ALGEBRAIC[20] = ( 1.00000*ALGEBRAIC[8]*(1.00000 - exp(- (STATES[0]+5.00000)/6.00000)))/( 0.0350000*(STATES[0]+5.00000)); RATES[16] = (ALGEBRAIC[8] - STATES[16])/ALGEBRAIC[20]; ALGEBRAIC[7] = 1.00000/(1.00000+exp((STATES[0]+35.0000)/9.00000))+0.600000/(1.00000+exp((50.0000 - STATES[0])/20.0000)); ALGEBRAIC[21] = 1.00000/( 0.0197000*exp(- pow( 0.0337000*(STATES[0]+14.5000), 2.00000))+0.0200000); RATES[17] = (ALGEBRAIC[7] - STATES[17])/ALGEBRAIC[21]; ALGEBRAIC[10] = CONSTANTS[96] - (CONSTANTS[96] - CONSTANTS[97])/(1.00000+pow(CONSTANTS[62]/STATES[23], 2.50000)); ALGEBRAIC[23] = CONSTANTS[59]/ALGEBRAIC[10]; ALGEBRAIC[27] = CONSTANTS[107]*ALGEBRAIC[10]; RATES[21] = ( ALGEBRAIC[23]*pow(STATES[4], 2.00000)*STATES[20] - CONSTANTS[60]*STATES[21]) - ( ALGEBRAIC[27]*STATES[4]*STATES[21] - CONSTANTS[61]*STATES[22]); ALGEBRAIC[1] = (STATES[0]>=- 40.0000 ? 0.00000 : 0.0570000*exp(- (STATES[0]+80.0000)/6.80000)); ALGEBRAIC[12] = (STATES[0]>=- 40.0000 ? 0.770000/( 0.130000*(1.00000+exp(- (STATES[0]+10.6600)/11.1000))) : 2.70000*exp( 0.0790000*STATES[0])+ 310000.*exp( 0.348500*STATES[0])); ALGEBRAIC[24] = 1.00000/(ALGEBRAIC[1]+ALGEBRAIC[12]); ALGEBRAIC[28] = 1.00000/(1.00000+exp(pow((STATES[0]+71.5500)/7.43000, 2.00000))); RATES[7] = (ALGEBRAIC[28] - STATES[7])/ALGEBRAIC[24]; ALGEBRAIC[2] = (STATES[0]>=- 40.0000 ? 0.00000 : ( ( - 25428.0*exp( 0.244400*STATES[0]) - 6.94800e-06*exp( - 0.0439100*STATES[0]))*(STATES[0]+37.7800))/(1.00000+exp( 0.311000*(STATES[0]+79.2300)))); ALGEBRAIC[13] = (STATES[0]>=- 40.0000 ? ( 0.600000*exp( 0.0570000*STATES[0]))/(1.00000+exp( - 0.100000*(STATES[0]+32.0000))) : ( 0.0242400*exp( - 0.0105200*STATES[0]))/(1.00000+exp( - 0.137800*(STATES[0]+40.1400)))); ALGEBRAIC[25] = 1.00000/(ALGEBRAIC[2]+ALGEBRAIC[13]); ALGEBRAIC[29] = 1.00000/pow(1.00000+exp((STATES[0]+71.5500)/7.43000), 2.00000); RATES[8] = (ALGEBRAIC[29] - STATES[8])/ALGEBRAIC[25]; ALGEBRAIC[31] = ((1.00000 - STATES[20]) - STATES[21]) - STATES[22]; RATES[20] = ( CONSTANTS[61]*ALGEBRAIC[31] - ALGEBRAIC[27]*STATES[4]*STATES[20]) - ( ALGEBRAIC[23]*pow(STATES[4], 2.00000)*STATES[20] - CONSTANTS[60]*STATES[21]); RATES[22] = ( ALGEBRAIC[27]*STATES[4]*STATES[21] - CONSTANTS[61]*STATES[22]) - ( CONSTANTS[60]*STATES[22] - ALGEBRAIC[23]*pow(STATES[4], 2.00000)*ALGEBRAIC[31]); ALGEBRAIC[98] = (( CONSTANTS[58]*STATES[21])/1.00000)*(STATES[23] - STATES[4]); ALGEBRAIC[99] = ( pow(CONSTANTS[53], CONSTANTS[113])*CONSTANTS[54]*(pow(STATES[24]/CONSTANTS[55], CONSTANTS[57]) - pow(STATES[23]/CONSTANTS[56], CONSTANTS[57])))/(1.00000+pow(STATES[24]/CONSTANTS[55], CONSTANTS[57])+pow(STATES[23]/CONSTANTS[56], CONSTANTS[57])); ALGEBRAIC[100] = 5.34800e-06*(STATES[23] - STATES[4]); RATES[23] = (ALGEBRAIC[99] - (( ALGEBRAIC[100]*CONSTANTS[114])/CONSTANTS[115]+ALGEBRAIC[98])) - ( CONSTANTS[91]*STATES[23]*(CONSTANTS[124] - STATES[38]) - CONSTANTS[90]*STATES[38]); ALGEBRAIC[101] = ((((((((((( CONSTANTS[69]*STATES[24]*(CONSTANTS[67] - STATES[27]) - CONSTANTS[68]*STATES[27])+ CONSTANTS[72]*STATES[24]*((CONSTANTS[70] - STATES[28]) - STATES[29])) - CONSTANTS[71]*STATES[28])+ CONSTANTS[74]*CONSTANTS[23]*((CONSTANTS[70] - STATES[28]) - STATES[29])) - CONSTANTS[73]*STATES[29])+ CONSTANTS[77]*STATES[24]*(CONSTANTS[75] - STATES[30])) - CONSTANTS[76]*STATES[30])+ CONSTANTS[80]*STATES[24]*((CONSTANTS[78] - STATES[31]) - STATES[32])) - CONSTANTS[79]*STATES[31])+ CONSTANTS[82]*CONSTANTS[23]*((CONSTANTS[78] - STATES[31]) - STATES[32])) - CONSTANTS[81]*STATES[32])+( CONSTANTS[85]*STATES[24]*(CONSTANTS[83] - STATES[33]) - CONSTANTS[84]*STATES[33]); RATES[24] = (( - ALGEBRAIC[99]*CONSTANTS[115])/CONSTANTS[114] - ALGEBRAIC[101])+ (CONSTANTS[15]/CONSTANTS[114])*(STATES[5] - STATES[24]); ALGEBRAIC[102] = CONSTANTS[66]*STATES[1]*(CONSTANTS[63] - STATES[25]) - CONSTANTS[65]*STATES[25]; RATES[25] = ALGEBRAIC[102]; ALGEBRAIC[103] = CONSTANTS[66]*STATES[2]*(CONSTANTS[64] - STATES[26]) - CONSTANTS[65]*STATES[26]; RATES[26] = ALGEBRAIC[103]; ALGEBRAIC[26] = (1.00000/CONSTANTS[112])*log(CONSTANTS[21]/STATES[1]); ALGEBRAIC[35] = CONSTANTS[18]*CONSTANTS[24]*pow(STATES[6], 3.00000)*STATES[7]*STATES[8]*(STATES[0] - ALGEBRAIC[26]); ALGEBRAIC[38] = CONSTANTS[18]*CONSTANTS[25]*(STATES[0] - ALGEBRAIC[26]); ALGEBRAIC[41] = 1.00000/(1.00000+ 0.124500*exp( - 0.100000*STATES[0]*CONSTANTS[112])+ 0.0365000*CONSTANTS[103]*exp( - STATES[0]*CONSTANTS[112])); ALGEBRAIC[42] = (( CONSTANTS[18]*CONSTANTS[26]*ALGEBRAIC[41]*CONSTANTS[20])/(1.00000+pow(CONSTANTS[27]/STATES[1], 4.00000)))/(CONSTANTS[20]+CONSTANTS[28]); ALGEBRAIC[69] = ( CONSTANTS[36]*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.750000*STATES[1]*exp( STATES[0]*CONSTANTS[112]) - 0.750000*CONSTANTS[21]))/(exp( STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[75] = CONSTANTS[19]*ALGEBRAIC[69]*STATES[16]*STATES[17]*((1.00000 - STATES[18])+CONSTANTS[95])*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[78] = 1.00000/(1.00000+pow(CONSTANTS[47]/STATES[4], 2.00000)); ALGEBRAIC[81] = exp( CONSTANTS[46]*STATES[0]*CONSTANTS[112])*pow(STATES[1], 3.00000)*CONSTANTS[22]; ALGEBRAIC[83] = exp( (CONSTANTS[46] - 1.00000)*STATES[0]*CONSTANTS[112])*pow(CONSTANTS[21], 3.00000)*STATES[4]; ALGEBRAIC[84] = CONSTANTS[41]*pow(CONSTANTS[21], 3.00000)*(1.00000+pow(STATES[1]/CONSTANTS[43], 3.00000))+ pow(CONSTANTS[44], 3.00000)*STATES[4]*(1.00000+STATES[4]/CONSTANTS[41])+ CONSTANTS[42]*pow(STATES[1], 3.00000)+ pow(STATES[1], 3.00000)*CONSTANTS[22]+ pow(CONSTANTS[21], 3.00000)*STATES[4]; ALGEBRAIC[87] = (( CONSTANTS[18]*CONSTANTS[40]*pow(CONSTANTS[48], CONSTANTS[113])*ALGEBRAIC[78]*(ALGEBRAIC[81] - ALGEBRAIC[83]))/ALGEBRAIC[84])/(1.00000+ CONSTANTS[45]*exp( (CONSTANTS[46] - 1.00000)*STATES[0]*CONSTANTS[112])); ALGEBRAIC[106] = ALGEBRAIC[35]+ALGEBRAIC[38]+ 3.00000*ALGEBRAIC[87]+ 3.00000*ALGEBRAIC[42]+ALGEBRAIC[75]; RATES[1] = (( - ALGEBRAIC[106]*CONSTANTS[5])/( CONSTANTS[117]*CONSTANTS[98])+ (CONSTANTS[16]/CONSTANTS[117])*(STATES[2] - STATES[1])) - ALGEBRAIC[102]; ALGEBRAIC[30] = (1.00000/CONSTANTS[112])*log(CONSTANTS[21]/STATES[2]); ALGEBRAIC[36] = CONSTANTS[101]*CONSTANTS[24]*pow(STATES[6], 3.00000)*STATES[7]*STATES[8]*(STATES[0] - ALGEBRAIC[30]); ALGEBRAIC[39] = CONSTANTS[101]*CONSTANTS[25]*(STATES[0] - ALGEBRAIC[30]); ALGEBRAIC[43] = (( CONSTANTS[101]*CONSTANTS[26]*ALGEBRAIC[41]*CONSTANTS[20])/(1.00000+pow(CONSTANTS[27]/STATES[2], 4.00000)))/(CONSTANTS[20]+CONSTANTS[28]); ALGEBRAIC[70] = ( CONSTANTS[36]*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.750000*STATES[2]*exp( STATES[0]*CONSTANTS[112]) - 0.750000*CONSTANTS[21]))/(exp( STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[76] = CONSTANTS[102]*ALGEBRAIC[70]*STATES[16]*STATES[17]*((1.00000 - STATES[19])+CONSTANTS[94])*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[80] = 1.00000/(1.00000+pow(CONSTANTS[47]/STATES[5], 2.00000)); ALGEBRAIC[82] = exp( CONSTANTS[46]*STATES[0]*CONSTANTS[112])*pow(STATES[2], 3.00000)*CONSTANTS[22]; ALGEBRAIC[85] = exp( (CONSTANTS[46] - 1.00000)*STATES[0]*CONSTANTS[112])*pow(CONSTANTS[21], 3.00000)*STATES[5]; ALGEBRAIC[86] = CONSTANTS[41]*pow(CONSTANTS[21], 3.00000)*(1.00000+pow(STATES[2]/CONSTANTS[43], 3.00000))+ pow(CONSTANTS[44], 3.00000)*STATES[5]*(1.00000+STATES[5]/CONSTANTS[41])+ CONSTANTS[42]*pow(STATES[2], 3.00000)+ pow(STATES[2], 3.00000)*CONSTANTS[22]+ pow(CONSTANTS[21], 3.00000)*STATES[5]; ALGEBRAIC[88] = (( CONSTANTS[101]*CONSTANTS[40]*pow(CONSTANTS[48], CONSTANTS[113])*ALGEBRAIC[80]*(ALGEBRAIC[82] - ALGEBRAIC[85]))/ALGEBRAIC[86])/(1.00000+ CONSTANTS[45]*exp( (CONSTANTS[46] - 1.00000)*STATES[0]*CONSTANTS[112])); ALGEBRAIC[107] = ALGEBRAIC[36]+ALGEBRAIC[39]+ 3.00000*ALGEBRAIC[88]+ 3.00000*ALGEBRAIC[43]+ALGEBRAIC[76]; RATES[2] = (( - ALGEBRAIC[107]*CONSTANTS[5])/( CONSTANTS[116]*CONSTANTS[98])+ (CONSTANTS[16]/CONSTANTS[116])*(STATES[1] - STATES[2])+ (CONSTANTS[17]/CONSTANTS[116])*(STATES[11] - STATES[2])) - ALGEBRAIC[103]; ALGEBRAIC[104] = ( CONSTANTS[87]*STATES[4]*(CONSTANTS[121] - STATES[34]) - CONSTANTS[86]*STATES[34])+( CONSTANTS[89]*STATES[4]*(CONSTANTS[123] - STATES[36]) - CONSTANTS[88]*STATES[36]); ALGEBRAIC[66] = ( CONSTANTS[37]*4.00000*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.341000*STATES[4]*exp( 2.00000*STATES[0]*CONSTANTS[112]) - 0.341000*CONSTANTS[22]))/(exp( 2.00000*STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[71] = CONSTANTS[19]*ALGEBRAIC[66]*STATES[16]*STATES[17]*((1.00000 - STATES[18])+CONSTANTS[95])*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[91] = ( CONSTANTS[18]*pow(CONSTANTS[52], CONSTANTS[113])*CONSTANTS[49]*pow(STATES[4], 1.60000))/(pow(CONSTANTS[50], 1.60000)+pow(STATES[4], 1.60000)); ALGEBRAIC[33] = ((1.00000/CONSTANTS[112])/2.00000)*log(CONSTANTS[22]/STATES[4]); ALGEBRAIC[95] = CONSTANTS[18]*CONSTANTS[51]*(STATES[0] - ALGEBRAIC[33]); ALGEBRAIC[109] = (ALGEBRAIC[71]+ALGEBRAIC[95]+ALGEBRAIC[91]) - 2.00000*ALGEBRAIC[87]; RATES[4] = ((( - ALGEBRAIC[109]*CONSTANTS[5])/( CONSTANTS[117]*2.00000*CONSTANTS[98])+ (CONSTANTS[14]/CONSTANTS[117])*(STATES[5] - STATES[4])) - ALGEBRAIC[104])+( ALGEBRAIC[98]*CONSTANTS[115])/CONSTANTS[117]+( ALGEBRAIC[100]*CONSTANTS[114])/CONSTANTS[117]; ALGEBRAIC[105] = ( CONSTANTS[87]*STATES[5]*(CONSTANTS[120] - STATES[35]) - CONSTANTS[86]*STATES[35])+( CONSTANTS[89]*STATES[5]*(CONSTANTS[122] - STATES[37]) - CONSTANTS[88]*STATES[37]); ALGEBRAIC[67] = ( CONSTANTS[37]*4.00000*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.341000*STATES[5]*exp( 2.00000*STATES[0]*CONSTANTS[112]) - 0.341000*CONSTANTS[22]))/(exp( 2.00000*STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[72] = CONSTANTS[102]*ALGEBRAIC[67]*STATES[16]*STATES[17]*((1.00000 - STATES[19])+CONSTANTS[94])*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[93] = ( CONSTANTS[101]*pow(CONSTANTS[52], CONSTANTS[113])*CONSTANTS[49]*pow(STATES[5], 1.60000))/(pow(CONSTANTS[50], 1.60000)+pow(STATES[5], 1.60000)); ALGEBRAIC[34] = ((1.00000/CONSTANTS[112])/2.00000)*log(CONSTANTS[22]/STATES[5]); ALGEBRAIC[96] = CONSTANTS[101]*CONSTANTS[51]*(STATES[0] - ALGEBRAIC[34]); ALGEBRAIC[110] = (ALGEBRAIC[72]+ALGEBRAIC[96]+ALGEBRAIC[93]) - 2.00000*ALGEBRAIC[88]; RATES[5] = (( - ALGEBRAIC[110]*CONSTANTS[5])/( CONSTANTS[116]*2.00000*CONSTANTS[98])+ (CONSTANTS[14]/CONSTANTS[116])*(STATES[4] - STATES[5])+ (CONSTANTS[15]/CONSTANTS[116])*(STATES[24] - STATES[5])) - ALGEBRAIC[105]; ALGEBRAIC[9] = (VOI>500.000&&VOI<5500.00 ? CONSTANTS[1] : CONSTANTS[0]); ALGEBRAIC[22] = (ALGEBRAIC[9] - STATES[0])/CONSTANTS[2]; ALGEBRAIC[44] = ALGEBRAIC[42]+ALGEBRAIC[43]; ALGEBRAIC[32] = (1.00000/CONSTANTS[112])*log(CONSTANTS[20]/STATES[3]); ALGEBRAIC[45] = 1.00000/(1.00000+exp((STATES[0]+74.0000)/24.0000)); ALGEBRAIC[46] = CONSTANTS[104]*STATES[9]*ALGEBRAIC[45]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[47] = 1.00000/(1.00000+exp(7.48800 - STATES[0]/5.98000)); ALGEBRAIC[48] = CONSTANTS[18]*CONSTANTS[32]*ALGEBRAIC[47]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[49] = CONSTANTS[101]*CONSTANTS[32]*ALGEBRAIC[47]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[50] = ALGEBRAIC[48]+ALGEBRAIC[49]; ALGEBRAIC[51] = (1.00000/CONSTANTS[112])*log((CONSTANTS[20]+ CONSTANTS[31]*CONSTANTS[21])/(STATES[3]+ CONSTANTS[31]*STATES[11])); ALGEBRAIC[52] = CONSTANTS[18]*CONSTANTS[92]*pow(STATES[10], 2.00000)*(STATES[0] - ALGEBRAIC[51]); ALGEBRAIC[53] = CONSTANTS[101]*CONSTANTS[93]*pow(STATES[10], 2.00000)*(STATES[0] - ALGEBRAIC[51]); ALGEBRAIC[54] = ALGEBRAIC[52]+ALGEBRAIC[53]; ALGEBRAIC[55] = CONSTANTS[105]*STATES[12]*STATES[13]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[56] = CONSTANTS[106]*STATES[14]*STATES[15]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[57] = ALGEBRAIC[55]+ALGEBRAIC[56]; ALGEBRAIC[58] = 1.02000/(1.00000+exp( 0.238500*((STATES[0] - ALGEBRAIC[32]) - 59.2150))); ALGEBRAIC[59] = ( 0.491240*exp( 0.0803200*((STATES[0]+5.47600) - ALGEBRAIC[32]))+exp( 0.0617500*((STATES[0] - ALGEBRAIC[32]) - 594.310)))/(1.00000+exp( - 0.514300*((STATES[0] - ALGEBRAIC[32])+4.75300))); ALGEBRAIC[60] = ALGEBRAIC[58]/(ALGEBRAIC[58]+ALGEBRAIC[59]); ALGEBRAIC[61] = 1.00000*0.350000* pow((CONSTANTS[20]/5.40000), 1.0 / 2)*ALGEBRAIC[60]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[68] = ( CONSTANTS[38]*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.750000*STATES[3]*exp( STATES[0]*CONSTANTS[112]) - 0.750000*CONSTANTS[20]))/(exp( STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[74] = ALGEBRAIC[68]*STATES[16]*STATES[17]*( CONSTANTS[19]*(CONSTANTS[95]+(1.00000 - STATES[18]))+ CONSTANTS[102]*(CONSTANTS[94]+(1.00000 - STATES[19])))*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[108] = ((ALGEBRAIC[57]+ALGEBRAIC[46]+ALGEBRAIC[54]+ALGEBRAIC[61]) - 2.00000*ALGEBRAIC[44])+ALGEBRAIC[74]+ALGEBRAIC[50]; ALGEBRAIC[111] = ALGEBRAIC[106]+ALGEBRAIC[107]; ALGEBRAIC[62] = (( CONSTANTS[18]*CONSTANTS[33])/(1.00000+CONSTANTS[35]/STATES[4]))*(STATES[0] - CONSTANTS[125]); ALGEBRAIC[63] = (( CONSTANTS[101]*CONSTANTS[33])/(1.00000+CONSTANTS[35]/STATES[5]))*(STATES[0] - CONSTANTS[125]); ALGEBRAIC[64] = ALGEBRAIC[62]+ALGEBRAIC[63]; ALGEBRAIC[65] = CONSTANTS[34]*(STATES[0] - CONSTANTS[125]); ALGEBRAIC[112] = ALGEBRAIC[64]+ALGEBRAIC[65]; ALGEBRAIC[113] = ALGEBRAIC[109]+ALGEBRAIC[110]; ALGEBRAIC[114] = ALGEBRAIC[111]+ALGEBRAIC[112]+ALGEBRAIC[113]+ALGEBRAIC[108]; RATES[0] = - (ALGEBRAIC[114] - ALGEBRAIC[22]); } void computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC) { ALGEBRAIC[0] = 1.00000/pow(1.00000+exp(- (56.8600+STATES[0])/9.03000), 2.00000); ALGEBRAIC[11] = 0.129200*exp(- pow((STATES[0]+45.7900)/15.5400, 2.00000))+ 0.0648700*exp(- pow((STATES[0] - 4.82300)/51.1200, 2.00000)); ALGEBRAIC[3] = 1.00000/(1.00000+exp(- (STATES[0]+10.0000)/5.00000)); ALGEBRAIC[14] = ( (550.000/(1.00000+exp((- 22.0000 - STATES[0])/9.00000)))*6.00000)/(1.00000+exp((STATES[0] - - 11.0000)/9.00000))+230.000/(1.00000+exp((STATES[0] - - 40.0000)/20.0000)); ALGEBRAIC[4] = 1.00000/(1.00000+exp(- (STATES[0]+3.80000)/14.2500)); ALGEBRAIC[15] = 990.100/(1.00000+exp(- (STATES[0]+2.43600)/14.1200)); ALGEBRAIC[5] = 1.00000/(1.00000+exp(- (STATES[0] - 19.0000)/13.0000)); ALGEBRAIC[16] = 9.00000/(1.00000+exp((STATES[0]+3.00000)/15.0000))+0.500000; ALGEBRAIC[6] = 1.00000/(1.00000+exp((STATES[0]+19.5000)/5.00000)); ALGEBRAIC[17] = 800.000/(1.00000+exp((STATES[0]+60.0000)/10.0000))+30.0000; ALGEBRAIC[18] = 8.50000*exp(- pow((STATES[0]+45.0000)/50.0000, 2.00000))+0.500000; ALGEBRAIC[19] = 85.0000*exp(- pow(STATES[0]+40.0000, 2.00000)/220.000)+7.00000; ALGEBRAIC[8] = 1.00000/(1.00000+exp(- (STATES[0]+5.00000)/6.00000)); ALGEBRAIC[20] = ( 1.00000*ALGEBRAIC[8]*(1.00000 - exp(- (STATES[0]+5.00000)/6.00000)))/( 0.0350000*(STATES[0]+5.00000)); ALGEBRAIC[7] = 1.00000/(1.00000+exp((STATES[0]+35.0000)/9.00000))+0.600000/(1.00000+exp((50.0000 - STATES[0])/20.0000)); ALGEBRAIC[21] = 1.00000/( 0.0197000*exp(- pow( 0.0337000*(STATES[0]+14.5000), 2.00000))+0.0200000); ALGEBRAIC[10] = CONSTANTS[96] - (CONSTANTS[96] - CONSTANTS[97])/(1.00000+pow(CONSTANTS[62]/STATES[23], 2.50000)); ALGEBRAIC[23] = CONSTANTS[59]/ALGEBRAIC[10]; ALGEBRAIC[27] = CONSTANTS[107]*ALGEBRAIC[10]; ALGEBRAIC[1] = (STATES[0]>=- 40.0000 ? 0.00000 : 0.0570000*exp(- (STATES[0]+80.0000)/6.80000)); ALGEBRAIC[12] = (STATES[0]>=- 40.0000 ? 0.770000/( 0.130000*(1.00000+exp(- (STATES[0]+10.6600)/11.1000))) : 2.70000*exp( 0.0790000*STATES[0])+ 310000.*exp( 0.348500*STATES[0])); ALGEBRAIC[24] = 1.00000/(ALGEBRAIC[1]+ALGEBRAIC[12]); ALGEBRAIC[28] = 1.00000/(1.00000+exp(pow((STATES[0]+71.5500)/7.43000, 2.00000))); ALGEBRAIC[2] = (STATES[0]>=- 40.0000 ? 0.00000 : ( ( - 25428.0*exp( 0.244400*STATES[0]) - 6.94800e-06*exp( - 0.0439100*STATES[0]))*(STATES[0]+37.7800))/(1.00000+exp( 0.311000*(STATES[0]+79.2300)))); ALGEBRAIC[13] = (STATES[0]>=- 40.0000 ? ( 0.600000*exp( 0.0570000*STATES[0]))/(1.00000+exp( - 0.100000*(STATES[0]+32.0000))) : ( 0.0242400*exp( - 0.0105200*STATES[0]))/(1.00000+exp( - 0.137800*(STATES[0]+40.1400)))); ALGEBRAIC[25] = 1.00000/(ALGEBRAIC[2]+ALGEBRAIC[13]); ALGEBRAIC[29] = 1.00000/pow(1.00000+exp((STATES[0]+71.5500)/7.43000), 2.00000); ALGEBRAIC[31] = ((1.00000 - STATES[20]) - STATES[21]) - STATES[22]; ALGEBRAIC[98] = (( CONSTANTS[58]*STATES[21])/1.00000)*(STATES[23] - STATES[4]); ALGEBRAIC[99] = ( pow(CONSTANTS[53], CONSTANTS[113])*CONSTANTS[54]*(pow(STATES[24]/CONSTANTS[55], CONSTANTS[57]) - pow(STATES[23]/CONSTANTS[56], CONSTANTS[57])))/(1.00000+pow(STATES[24]/CONSTANTS[55], CONSTANTS[57])+pow(STATES[23]/CONSTANTS[56], CONSTANTS[57])); ALGEBRAIC[100] = 5.34800e-06*(STATES[23] - STATES[4]); ALGEBRAIC[101] = ((((((((((( CONSTANTS[69]*STATES[24]*(CONSTANTS[67] - STATES[27]) - CONSTANTS[68]*STATES[27])+ CONSTANTS[72]*STATES[24]*((CONSTANTS[70] - STATES[28]) - STATES[29])) - CONSTANTS[71]*STATES[28])+ CONSTANTS[74]*CONSTANTS[23]*((CONSTANTS[70] - STATES[28]) - STATES[29])) - CONSTANTS[73]*STATES[29])+ CONSTANTS[77]*STATES[24]*(CONSTANTS[75] - STATES[30])) - CONSTANTS[76]*STATES[30])+ CONSTANTS[80]*STATES[24]*((CONSTANTS[78] - STATES[31]) - STATES[32])) - CONSTANTS[79]*STATES[31])+ CONSTANTS[82]*CONSTANTS[23]*((CONSTANTS[78] - STATES[31]) - STATES[32])) - CONSTANTS[81]*STATES[32])+( CONSTANTS[85]*STATES[24]*(CONSTANTS[83] - STATES[33]) - CONSTANTS[84]*STATES[33]); ALGEBRAIC[102] = CONSTANTS[66]*STATES[1]*(CONSTANTS[63] - STATES[25]) - CONSTANTS[65]*STATES[25]; ALGEBRAIC[103] = CONSTANTS[66]*STATES[2]*(CONSTANTS[64] - STATES[26]) - CONSTANTS[65]*STATES[26]; ALGEBRAIC[26] = (1.00000/CONSTANTS[112])*log(CONSTANTS[21]/STATES[1]); ALGEBRAIC[35] = CONSTANTS[18]*CONSTANTS[24]*pow(STATES[6], 3.00000)*STATES[7]*STATES[8]*(STATES[0] - ALGEBRAIC[26]); ALGEBRAIC[38] = CONSTANTS[18]*CONSTANTS[25]*(STATES[0] - ALGEBRAIC[26]); ALGEBRAIC[41] = 1.00000/(1.00000+ 0.124500*exp( - 0.100000*STATES[0]*CONSTANTS[112])+ 0.0365000*CONSTANTS[103]*exp( - STATES[0]*CONSTANTS[112])); ALGEBRAIC[42] = (( CONSTANTS[18]*CONSTANTS[26]*ALGEBRAIC[41]*CONSTANTS[20])/(1.00000+pow(CONSTANTS[27]/STATES[1], 4.00000)))/(CONSTANTS[20]+CONSTANTS[28]); ALGEBRAIC[69] = ( CONSTANTS[36]*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.750000*STATES[1]*exp( STATES[0]*CONSTANTS[112]) - 0.750000*CONSTANTS[21]))/(exp( STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[75] = CONSTANTS[19]*ALGEBRAIC[69]*STATES[16]*STATES[17]*((1.00000 - STATES[18])+CONSTANTS[95])*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[78] = 1.00000/(1.00000+pow(CONSTANTS[47]/STATES[4], 2.00000)); ALGEBRAIC[81] = exp( CONSTANTS[46]*STATES[0]*CONSTANTS[112])*pow(STATES[1], 3.00000)*CONSTANTS[22]; ALGEBRAIC[83] = exp( (CONSTANTS[46] - 1.00000)*STATES[0]*CONSTANTS[112])*pow(CONSTANTS[21], 3.00000)*STATES[4]; ALGEBRAIC[84] = CONSTANTS[41]*pow(CONSTANTS[21], 3.00000)*(1.00000+pow(STATES[1]/CONSTANTS[43], 3.00000))+ pow(CONSTANTS[44], 3.00000)*STATES[4]*(1.00000+STATES[4]/CONSTANTS[41])+ CONSTANTS[42]*pow(STATES[1], 3.00000)+ pow(STATES[1], 3.00000)*CONSTANTS[22]+ pow(CONSTANTS[21], 3.00000)*STATES[4]; ALGEBRAIC[87] = (( CONSTANTS[18]*CONSTANTS[40]*pow(CONSTANTS[48], CONSTANTS[113])*ALGEBRAIC[78]*(ALGEBRAIC[81] - ALGEBRAIC[83]))/ALGEBRAIC[84])/(1.00000+ CONSTANTS[45]*exp( (CONSTANTS[46] - 1.00000)*STATES[0]*CONSTANTS[112])); ALGEBRAIC[106] = ALGEBRAIC[35]+ALGEBRAIC[38]+ 3.00000*ALGEBRAIC[87]+ 3.00000*ALGEBRAIC[42]+ALGEBRAIC[75]; ALGEBRAIC[30] = (1.00000/CONSTANTS[112])*log(CONSTANTS[21]/STATES[2]); ALGEBRAIC[36] = CONSTANTS[101]*CONSTANTS[24]*pow(STATES[6], 3.00000)*STATES[7]*STATES[8]*(STATES[0] - ALGEBRAIC[30]); ALGEBRAIC[39] = CONSTANTS[101]*CONSTANTS[25]*(STATES[0] - ALGEBRAIC[30]); ALGEBRAIC[43] = (( CONSTANTS[101]*CONSTANTS[26]*ALGEBRAIC[41]*CONSTANTS[20])/(1.00000+pow(CONSTANTS[27]/STATES[2], 4.00000)))/(CONSTANTS[20]+CONSTANTS[28]); ALGEBRAIC[70] = ( CONSTANTS[36]*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.750000*STATES[2]*exp( STATES[0]*CONSTANTS[112]) - 0.750000*CONSTANTS[21]))/(exp( STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[76] = CONSTANTS[102]*ALGEBRAIC[70]*STATES[16]*STATES[17]*((1.00000 - STATES[19])+CONSTANTS[94])*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[80] = 1.00000/(1.00000+pow(CONSTANTS[47]/STATES[5], 2.00000)); ALGEBRAIC[82] = exp( CONSTANTS[46]*STATES[0]*CONSTANTS[112])*pow(STATES[2], 3.00000)*CONSTANTS[22]; ALGEBRAIC[85] = exp( (CONSTANTS[46] - 1.00000)*STATES[0]*CONSTANTS[112])*pow(CONSTANTS[21], 3.00000)*STATES[5]; ALGEBRAIC[86] = CONSTANTS[41]*pow(CONSTANTS[21], 3.00000)*(1.00000+pow(STATES[2]/CONSTANTS[43], 3.00000))+ pow(CONSTANTS[44], 3.00000)*STATES[5]*(1.00000+STATES[5]/CONSTANTS[41])+ CONSTANTS[42]*pow(STATES[2], 3.00000)+ pow(STATES[2], 3.00000)*CONSTANTS[22]+ pow(CONSTANTS[21], 3.00000)*STATES[5]; ALGEBRAIC[88] = (( CONSTANTS[101]*CONSTANTS[40]*pow(CONSTANTS[48], CONSTANTS[113])*ALGEBRAIC[80]*(ALGEBRAIC[82] - ALGEBRAIC[85]))/ALGEBRAIC[86])/(1.00000+ CONSTANTS[45]*exp( (CONSTANTS[46] - 1.00000)*STATES[0]*CONSTANTS[112])); ALGEBRAIC[107] = ALGEBRAIC[36]+ALGEBRAIC[39]+ 3.00000*ALGEBRAIC[88]+ 3.00000*ALGEBRAIC[43]+ALGEBRAIC[76]; ALGEBRAIC[104] = ( CONSTANTS[87]*STATES[4]*(CONSTANTS[121] - STATES[34]) - CONSTANTS[86]*STATES[34])+( CONSTANTS[89]*STATES[4]*(CONSTANTS[123] - STATES[36]) - CONSTANTS[88]*STATES[36]); ALGEBRAIC[66] = ( CONSTANTS[37]*4.00000*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.341000*STATES[4]*exp( 2.00000*STATES[0]*CONSTANTS[112]) - 0.341000*CONSTANTS[22]))/(exp( 2.00000*STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[71] = CONSTANTS[19]*ALGEBRAIC[66]*STATES[16]*STATES[17]*((1.00000 - STATES[18])+CONSTANTS[95])*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[91] = ( CONSTANTS[18]*pow(CONSTANTS[52], CONSTANTS[113])*CONSTANTS[49]*pow(STATES[4], 1.60000))/(pow(CONSTANTS[50], 1.60000)+pow(STATES[4], 1.60000)); ALGEBRAIC[33] = ((1.00000/CONSTANTS[112])/2.00000)*log(CONSTANTS[22]/STATES[4]); ALGEBRAIC[95] = CONSTANTS[18]*CONSTANTS[51]*(STATES[0] - ALGEBRAIC[33]); ALGEBRAIC[109] = (ALGEBRAIC[71]+ALGEBRAIC[95]+ALGEBRAIC[91]) - 2.00000*ALGEBRAIC[87]; ALGEBRAIC[105] = ( CONSTANTS[87]*STATES[5]*(CONSTANTS[120] - STATES[35]) - CONSTANTS[86]*STATES[35])+( CONSTANTS[89]*STATES[5]*(CONSTANTS[122] - STATES[37]) - CONSTANTS[88]*STATES[37]); ALGEBRAIC[67] = ( CONSTANTS[37]*4.00000*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.341000*STATES[5]*exp( 2.00000*STATES[0]*CONSTANTS[112]) - 0.341000*CONSTANTS[22]))/(exp( 2.00000*STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[72] = CONSTANTS[102]*ALGEBRAIC[67]*STATES[16]*STATES[17]*((1.00000 - STATES[19])+CONSTANTS[94])*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[93] = ( CONSTANTS[101]*pow(CONSTANTS[52], CONSTANTS[113])*CONSTANTS[49]*pow(STATES[5], 1.60000))/(pow(CONSTANTS[50], 1.60000)+pow(STATES[5], 1.60000)); ALGEBRAIC[34] = ((1.00000/CONSTANTS[112])/2.00000)*log(CONSTANTS[22]/STATES[5]); ALGEBRAIC[96] = CONSTANTS[101]*CONSTANTS[51]*(STATES[0] - ALGEBRAIC[34]); ALGEBRAIC[110] = (ALGEBRAIC[72]+ALGEBRAIC[96]+ALGEBRAIC[93]) - 2.00000*ALGEBRAIC[88]; ALGEBRAIC[9] = (VOI>500.000&&VOI<5500.00 ? CONSTANTS[1] : CONSTANTS[0]); ALGEBRAIC[22] = (ALGEBRAIC[9] - STATES[0])/CONSTANTS[2]; ALGEBRAIC[44] = ALGEBRAIC[42]+ALGEBRAIC[43]; ALGEBRAIC[32] = (1.00000/CONSTANTS[112])*log(CONSTANTS[20]/STATES[3]); ALGEBRAIC[45] = 1.00000/(1.00000+exp((STATES[0]+74.0000)/24.0000)); ALGEBRAIC[46] = CONSTANTS[104]*STATES[9]*ALGEBRAIC[45]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[47] = 1.00000/(1.00000+exp(7.48800 - STATES[0]/5.98000)); ALGEBRAIC[48] = CONSTANTS[18]*CONSTANTS[32]*ALGEBRAIC[47]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[49] = CONSTANTS[101]*CONSTANTS[32]*ALGEBRAIC[47]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[50] = ALGEBRAIC[48]+ALGEBRAIC[49]; ALGEBRAIC[51] = (1.00000/CONSTANTS[112])*log((CONSTANTS[20]+ CONSTANTS[31]*CONSTANTS[21])/(STATES[3]+ CONSTANTS[31]*STATES[11])); ALGEBRAIC[52] = CONSTANTS[18]*CONSTANTS[92]*pow(STATES[10], 2.00000)*(STATES[0] - ALGEBRAIC[51]); ALGEBRAIC[53] = CONSTANTS[101]*CONSTANTS[93]*pow(STATES[10], 2.00000)*(STATES[0] - ALGEBRAIC[51]); ALGEBRAIC[54] = ALGEBRAIC[52]+ALGEBRAIC[53]; ALGEBRAIC[55] = CONSTANTS[105]*STATES[12]*STATES[13]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[56] = CONSTANTS[106]*STATES[14]*STATES[15]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[57] = ALGEBRAIC[55]+ALGEBRAIC[56]; ALGEBRAIC[58] = 1.02000/(1.00000+exp( 0.238500*((STATES[0] - ALGEBRAIC[32]) - 59.2150))); ALGEBRAIC[59] = ( 0.491240*exp( 0.0803200*((STATES[0]+5.47600) - ALGEBRAIC[32]))+exp( 0.0617500*((STATES[0] - ALGEBRAIC[32]) - 594.310)))/(1.00000+exp( - 0.514300*((STATES[0] - ALGEBRAIC[32])+4.75300))); ALGEBRAIC[60] = ALGEBRAIC[58]/(ALGEBRAIC[58]+ALGEBRAIC[59]); ALGEBRAIC[61] = 1.00000*0.350000* pow((CONSTANTS[20]/5.40000), 1.0 / 2)*ALGEBRAIC[60]*(STATES[0] - ALGEBRAIC[32]); ALGEBRAIC[68] = ( CONSTANTS[38]*STATES[0]*CONSTANTS[98]*CONSTANTS[112]*( 0.750000*STATES[3]*exp( STATES[0]*CONSTANTS[112]) - 0.750000*CONSTANTS[20]))/(exp( STATES[0]*CONSTANTS[112]) - 1.00000); ALGEBRAIC[74] = ALGEBRAIC[68]*STATES[16]*STATES[17]*( CONSTANTS[19]*(CONSTANTS[95]+(1.00000 - STATES[18]))+ CONSTANTS[102]*(CONSTANTS[94]+(1.00000 - STATES[19])))*pow(CONSTANTS[39], CONSTANTS[113])*0.450000*1.00000; ALGEBRAIC[108] = ((ALGEBRAIC[57]+ALGEBRAIC[46]+ALGEBRAIC[54]+ALGEBRAIC[61]) - 2.00000*ALGEBRAIC[44])+ALGEBRAIC[74]+ALGEBRAIC[50]; ALGEBRAIC[111] = ALGEBRAIC[106]+ALGEBRAIC[107]; ALGEBRAIC[62] = (( CONSTANTS[18]*CONSTANTS[33])/(1.00000+CONSTANTS[35]/STATES[4]))*(STATES[0] - CONSTANTS[125]); ALGEBRAIC[63] = (( CONSTANTS[101]*CONSTANTS[33])/(1.00000+CONSTANTS[35]/STATES[5]))*(STATES[0] - CONSTANTS[125]); ALGEBRAIC[64] = ALGEBRAIC[62]+ALGEBRAIC[63]; ALGEBRAIC[65] = CONSTANTS[34]*(STATES[0] - CONSTANTS[125]); ALGEBRAIC[112] = ALGEBRAIC[64]+ALGEBRAIC[65]; ALGEBRAIC[113] = ALGEBRAIC[109]+ALGEBRAIC[110]; ALGEBRAIC[114] = ALGEBRAIC[111]+ALGEBRAIC[112]+ALGEBRAIC[113]+ALGEBRAIC[108]; ALGEBRAIC[37] = ALGEBRAIC[35]+ALGEBRAIC[36]; ALGEBRAIC[40] = ALGEBRAIC[38]+ALGEBRAIC[39]; ALGEBRAIC[73] = ALGEBRAIC[71]+ALGEBRAIC[72]; ALGEBRAIC[77] = ALGEBRAIC[75]+ALGEBRAIC[76]; ALGEBRAIC[79] = ALGEBRAIC[73]+ALGEBRAIC[74]+ALGEBRAIC[77]; ALGEBRAIC[89] = 3.00000*ALGEBRAIC[87]+ 3.00000*ALGEBRAIC[42]+ALGEBRAIC[75]; ALGEBRAIC[90] = ALGEBRAIC[87]+ALGEBRAIC[88]; ALGEBRAIC[92] = 3.00000*ALGEBRAIC[88]+ 3.00000*ALGEBRAIC[43]+ALGEBRAIC[76]; ALGEBRAIC[94] = ALGEBRAIC[91]+ALGEBRAIC[93]; ALGEBRAIC[97] = ALGEBRAIC[95]+ALGEBRAIC[96]; }