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 118 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 110 entries in the constant variable array.
 */
/*
 * VOI is t in component environment (millisecond).
 * STATES[0] is V in component membrane (millivolt).
 * CONSTANTS[0] is R in component membrane (joule_per_kmole_kelvin).
 * CONSTANTS[1] is T in component membrane (kelvin).
 * CONSTANTS[2] is Frdy in component membrane (coulomb_per_mole).
 * CONSTANTS[94] is FoRT in component membrane (per_milliV).
 * CONSTANTS[3] is C_mem in component membrane (farad).
 * ALGEBRAIC[96] is I_Na_tot_junc in component Sodium_Concentrations (picoA_per_picoF).
 * ALGEBRAIC[102] is I_Na_tot_sl in component Sodium_Concentrations (picoA_per_picoF).
 * ALGEBRAIC[57] is I_ClCa in component Ca_Activated_Cl_Current (picoA_per_picoF).
 * ALGEBRAIC[58] is I_Cl_Bk in component Background_Cl_Current (picoA_per_picoF).
 * ALGEBRAIC[111] is I_Ca_tot_junc in component Calcium_Concentrations (picoA_per_picoF).
 * ALGEBRAIC[114] is I_Ca_tot_sl in component Calcium_Concentrations (picoA_per_picoF).
 * ALGEBRAIC[108] is I_K_tot in component Potassium_Concentrations (picoA_per_picoF).
 * ALGEBRAIC[103] is I_Na_tot in component membrane (picoA_per_picoF).
 * ALGEBRAIC[59] is I_Cl_tot in component membrane (picoA_per_picoF).
 * ALGEBRAIC[116] is I_Ca_tot in component membrane (picoA_per_picoF).
 * ALGEBRAIC[117] is I_tot in component membrane (picoA_per_picoF).
 * ALGEBRAIC[10] is I_Stim in component membrane (picoA_per_picoF).
 * CONSTANTS[4] is I_Stim_Start in component membrane (millisecond).
 * CONSTANTS[5] is I_Stim_Amplitude in component membrane (picoA_per_picoF).
 * CONSTANTS[6] is I_Stim_Period in component membrane (millisecond).
 * CONSTANTS[7] is I_Stim_PulseDuration in component membrane (millisecond).
 * CONSTANTS[8] is F_junc in component membrane (dimensionless).
 * CONSTANTS[95] is F_sl in component membrane (dimensionless).
 * CONSTANTS[9] is F_junc_Ca_L in component membrane (dimensionless).
 * CONSTANTS[96] is F_sl_Ca_L in component membrane (dimensionless).
 * CONSTANTS[97] is V_cell in component membrane (litre).
 * CONSTANTS[10] is Length_cell in component membrane (decimetre).
 * CONSTANTS[11] is Radius_cell in component membrane (decimetre).
 * CONSTANTS[99] is V_myo in component membrane (litre).
 * CONSTANTS[102] is V_sl in component membrane (litre).
 * CONSTANTS[103] is V_sr in component membrane (litre).
 * CONSTANTS[104] is V_junc in component membrane (litre).
 * CONSTANTS[12] is J_Ca_juncsl in component membrane (L_per_millis).
 * CONSTANTS[13] is J_Ca_slmyo in component membrane (L_per_millis).
 * CONSTANTS[14] is J_Na_juncsl in component membrane (L_per_millis).
 * CONSTANTS[15] is J_Na_slmyo in component membrane (L_per_millis).
 * ALGEBRAIC[94] is I_Na_junc in component Fast_Na_Current (picoA_per_picoF).
 * ALGEBRAIC[98] is I_Na_sl in component Fast_Na_Current (picoA_per_picoF).
 * ALGEBRAIC[99] is I_Na in component Fast_Na_Current (picoA_per_picoF).
 * ALGEBRAIC[97] is E_Na_sl in component Nerst_Potentials (millivolt).
 * ALGEBRAIC[93] is E_Na_junc in component Nerst_Potentials (millivolt).
 * CONSTANTS[16] is G_Na in component Fast_Na_Current (milliS_per_microF).
 * STATES[1] is m in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[0] is m_ss in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[12] is tau_m in component Fast_Na_Current (millisecond).
 * ALGEBRAIC[1] is a_h in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[13] is b_h in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[26] is tau_h in component Fast_Na_Current (millisecond).
 * STATES[2] is h in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[33] is h_ss in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[2] is a_j in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[14] is b_j in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[27] is tau_j in component Fast_Na_Current (millisecond).
 * STATES[3] is j in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[34] is j_ss in component Fast_Na_Current (dimensionless).
 * ALGEBRAIC[95] is I_Na_Bk_junc in component Background_Na_Current (picoA_per_picoF).
 * ALGEBRAIC[100] is I_Na_Bk_sl in component Background_Na_Current (picoA_per_picoF).
 * ALGEBRAIC[101] is I_Na_Bk in component Background_Na_Current (picoA_per_picoF).
 * CONSTANTS[17] is G_Na_B in component Background_Na_Current (milliS_per_microF).
 * CONSTANTS[18] is Na_o in component Sodium_Concentrations (millimolar).
 * CONSTANTS[98] is sigma in component Na_K_Pump_Current (dimensionless).
 * ALGEBRAIC[24] is f_NaK in component Na_K_Pump_Current (dimensionless).
 * ALGEBRAIC[31] is I_NaK_junc in component Na_K_Pump_Current (picoA_per_picoF).
 * ALGEBRAIC[38] is I_NaK_sl in component Na_K_Pump_Current (picoA_per_picoF).
 * ALGEBRAIC[43] is I_NaK in component Na_K_Pump_Current (picoA_per_picoF).
 * CONSTANTS[19] is Ibar_NaK in component Na_K_Pump_Current (picoA_per_picoF).
 * CONSTANTS[20] is K_o in component Potassium_Concentrations (millimolar).
 * STATES[4] is Na_j in component Sodium_Concentrations (millimolar).
 * STATES[5] is Na_sl in component Sodium_Concentrations (millimolar).
 * CONSTANTS[21] is Km_Ko in component Na_K_Pump_Current (millimolar).
 * CONSTANTS[22] is Km_Naip in component Na_K_Pump_Current (millimolar).
 * ALGEBRAIC[3] is x_r_ss in component Rapidly_Activating_K_Current (dimensionless).
 * STATES[6] is x_Kr in component Rapidly_Activating_K_Current (dimensionless).
 * ALGEBRAIC[44] is r_Kr in component Rapidly_Activating_K_Current (dimensionless).
 * CONSTANTS[100] is E_K in component Nerst_Potentials (millivolt).
 * CONSTANTS[23] is G_Kr in component Rapidly_Activating_K_Current (milliS_per_microF).
 * ALGEBRAIC[15] is tau_xr in component Rapidly_Activating_K_Current (millisecond).
 * ALGEBRAIC[45] is I_Kr in component Rapidly_Activating_K_Current (picoA_per_picoF).
 * ALGEBRAIC[4] is x_s_ss in component Slowly_Activating_K_Current (dimensionless).
 * ALGEBRAIC[16] is tau_xs in component Slowly_Activating_K_Current (millisecond).
 * STATES[7] is x_Ks in component Slowly_Activating_K_Current (dimensionless).
 * ALGEBRAIC[104] is E_Ks in component Nerst_Potentials (millivolt).
 * CONSTANTS[24] is G_Ks_junc in component Slowly_Activating_K_Current (milliS_per_microF).
 * CONSTANTS[25] is G_Ks_sl in component Slowly_Activating_K_Current (milliS_per_microF).
 * ALGEBRAIC[105] is I_Ks_junc in component Slowly_Activating_K_Current (picoA_per_picoF).
 * ALGEBRAIC[106] is I_Ks_sl in component Slowly_Activating_K_Current (picoA_per_picoF).
 * ALGEBRAIC[107] is I_Ks in component Slowly_Activating_K_Current (picoA_per_picoF).
 * ALGEBRAIC[46] is kp_Kp in component Plateau_K_Current (dimensionless).
 * CONSTANTS[26] is G_Kp in component Plateau_K_Current (milliS_per_microF).
 * ALGEBRAIC[47] is I_Kp in component Plateau_K_Current (picoA_per_picoF).
 * ALGEBRAIC[5] is x_to_ss in component Transient_Outward_K_Current (dimensionless).
 * ALGEBRAIC[6] is y_to_ss in component Transient_Outward_K_Current (dimensionless).
 * ALGEBRAIC[17] is tau_x_tos in component Transient_Outward_K_Current (millisecond).
 * ALGEBRAIC[18] is tau_y_tos in component Transient_Outward_K_Current (millisecond).
 * ALGEBRAIC[19] is tau_x_tof in component Transient_Outward_K_Current (millisecond).
 * ALGEBRAIC[20] is tau_y_tof in component Transient_Outward_K_Current (millisecond).
 * STATES[8] is x_to_s in component Transient_Outward_K_Current (dimensionless).
 * STATES[9] is y_to_s in component Transient_Outward_K_Current (dimensionless).
 * STATES[10] is x_to_f in component Transient_Outward_K_Current (dimensionless).
 * STATES[11] is y_to_f in component Transient_Outward_K_Current (dimensionless).
 * CONSTANTS[27] is G_to_s in component Transient_Outward_K_Current (milliS_per_microF).
 * CONSTANTS[28] is G_to_f in component Transient_Outward_K_Current (milliS_per_microF).
 * ALGEBRAIC[48] is I_to_s in component Transient_Outward_K_Current (picoA_per_picoF).
 * ALGEBRAIC[49] is I_to_f in component Transient_Outward_K_Current (picoA_per_picoF).
 * ALGEBRAIC[50] is I_to in component Transient_Outward_K_Current (picoA_per_picoF).
 * ALGEBRAIC[51] is a_K1 in component Inward_Rectifier_K_Current (dimensionless).
 * ALGEBRAIC[52] is b_K1 in component Inward_Rectifier_K_Current (dimensionless).
 * ALGEBRAIC[53] is K1_ss in component Inward_Rectifier_K_Current (dimensionless).
 * ALGEBRAIC[54] is I_K1 in component Inward_Rectifier_K_Current (picoA_per_picoF).
 * CONSTANTS[29] is G_K1 in component Inward_Rectifier_K_Current (milliS_per_microF).
 * ALGEBRAIC[55] is I_ClCa_junc in component Ca_Activated_Cl_Current (picoA_per_picoF).
 * ALGEBRAIC[56] is I_ClCa_sl in component Ca_Activated_Cl_Current (picoA_per_picoF).
 * STATES[12] is Ca_j in component Calcium_Concentrations (millimolar).
 * STATES[13] is Ca_sl in component Calcium_Concentrations (millimolar).
 * CONSTANTS[101] is E_Cl in component Nerst_Potentials (millivolt).
 * CONSTANTS[30] is G_ClCa in component Ca_Activated_Cl_Current (milliS_per_microF).
 * CONSTANTS[31] is Kd_ClCa in component Ca_Activated_Cl_Current (millimolar).
 * CONSTANTS[32] is G_Cl_B in component Background_Cl_Current (milliS_per_microF).
 * ALGEBRAIC[7] is d_ss in component L_Type_Calcium_Current (dimensionless).
 * ALGEBRAIC[21] is alpha_d in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[28] is beta_d in component L_Type_Calcium_Current (dimensionless).
 * ALGEBRAIC[35] is gamma_d in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[40] is tau_d in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[8] is f_ss in component L_Type_Calcium_Current (dimensionless).
 * ALGEBRAIC[22] is alpha_f in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[29] is beta_f in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[36] is gamma_f in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[41] is tau_f in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[9] is f_2_ss in component L_Type_Calcium_Current (dimensionless).
 * ALGEBRAIC[23] is alpha_f_2 in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[30] is beta_f_2 in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[37] is gamma_f_2 in component L_Type_Calcium_Current (millisecond).
 * ALGEBRAIC[42] is tau_f_2 in component L_Type_Calcium_Current (millisecond).
 * STATES[14] is d in component L_Type_Calcium_Current (dimensionless).
 * STATES[15] is f in component L_Type_Calcium_Current (dimensionless).
 * STATES[16] is f_2 in component L_Type_Calcium_Current (dimensionless).
 * STATES[17] is f_Ca_B_j in component L_Type_Calcium_Current (dimensionless).
 * STATES[18] is f_Ca_B_sl in component L_Type_Calcium_Current (dimensionless).
 * CONSTANTS[33] is K_i in component Potassium_Concentrations (millimolar).
 * CONSTANTS[34] is Ca_o in component Calcium_Concentrations (millimolar).
 * ALGEBRAIC[60] is Ibar_Ca_j in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[61] is Ibar_Ca_sl in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[62] is Ibar_K in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[63] is Ibar_Na_j in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[64] is Ibar_Na_sl in component L_Type_Calcium_Current (picoA_per_picoF).
 * CONSTANTS[35] is p_Ca in component L_Type_Calcium_Current (litre_per_farad_millisecond).
 * CONSTANTS[36] is p_Na in component L_Type_Calcium_Current (litre_per_farad_millisecond).
 * CONSTANTS[37] is p_K in component L_Type_Calcium_Current (litre_per_farad_millisecond).
 * ALGEBRAIC[65] is I_Ca_junc in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[66] is I_Ca_sl in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[67] is I_Ca in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[69] is I_Ca_Na_junc in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[70] is I_Ca_Na_sl in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[72] is I_Ca_Na in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[68] is I_Ca_K in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[74] is I_Ca_L in component L_Type_Calcium_Current (picoA_per_picoF).
 * ALGEBRAIC[71] is Ka_junc in component Na_Ca_Exchanger_Current (dimensionless).
 * ALGEBRAIC[73] is Ka_sl in component Na_Ca_Exchanger_Current (dimensionless).
 * CONSTANTS[38] is Kd_act in component Na_Ca_Exchanger_Current (millimolar).
 * CONSTANTS[39] is Km_Ca_i in component Na_Ca_Exchanger_Current (millimolar).
 * CONSTANTS[40] is Km_Ca_o in component Na_Ca_Exchanger_Current (millimolar).
 * CONSTANTS[41] is Km_Na_i in component Na_Ca_Exchanger_Current (millimolar).
 * CONSTANTS[42] is Km_Na_o in component Na_Ca_Exchanger_Current (millimolar).
 * CONSTANTS[43] is k_sat in component Na_Ca_Exchanger_Current (dimensionless).
 * CONSTANTS[44] is nu in component Na_Ca_Exchanger_Current (dimensionless).
 * ALGEBRAIC[75] is s1_junc in component Na_Ca_Exchanger_Current (millimolar4).
 * ALGEBRAIC[77] is s2_junc in component Na_Ca_Exchanger_Current (millimolar4).
 * ALGEBRAIC[79] is s3_junc in component Na_Ca_Exchanger_Current (millimolar4).
 * ALGEBRAIC[76] is s1_sl in component Na_Ca_Exchanger_Current (millimolar4).
 * ALGEBRAIC[78] is s2_sl in component Na_Ca_Exchanger_Current (millimolar4).
 * ALGEBRAIC[80] is s3_sl in component Na_Ca_Exchanger_Current (millimolar4).
 * CONSTANTS[45] is Ibar_NCX in component Na_Ca_Exchanger_Current (picoA_per_picoF).
 * ALGEBRAIC[82] is I_ncx_sl in component Na_Ca_Exchanger_Current (picoA_per_picoF).
 * ALGEBRAIC[81] is I_ncx_junc in component Na_Ca_Exchanger_Current (picoA_per_picoF).
 * ALGEBRAIC[84] is I_ncx in component Na_Ca_Exchanger_Current (picoA_per_picoF).
 * CONSTANTS[46] is Km_P_Ca in component Sarcolemmal_Ca_Pump_Current (millimolar).
 * CONSTANTS[47] is Ibar_PMCA in component Sarcolemmal_Ca_Pump_Current (picoA_per_picoF).
 * ALGEBRAIC[83] is I_pCa_junc in component Sarcolemmal_Ca_Pump_Current (picoA_per_picoF).
 * ALGEBRAIC[85] is I_pCa_sl in component Sarcolemmal_Ca_Pump_Current (picoA_per_picoF).
 * ALGEBRAIC[87] is I_pCa in component Sarcolemmal_Ca_Pump_Current (picoA_per_picoF).
 * ALGEBRAIC[112] is E_Ca_sl in component Nerst_Potentials (millivolt).
 * ALGEBRAIC[109] is E_Ca_junc in component Nerst_Potentials (millivolt).
 * CONSTANTS[48] is G_Ca_B in component Background_Ca_Current (milliS_per_microF).
 * ALGEBRAIC[113] is I_Ca_Bk_sl in component Background_Ca_Current (picoA_per_picoF).
 * ALGEBRAIC[110] is I_Ca_Bk_junc in component Background_Ca_Current (picoA_per_picoF).
 * ALGEBRAIC[115] is I_Ca_Bk in component Background_Ca_Current (picoA_per_picoF).
 * CONSTANTS[49] is Max_SR in component SR_Fluxes (dimensionless).
 * CONSTANTS[50] is Min_SR in component SR_Fluxes (dimensionless).
 * STATES[19] is Ca_SR in component Calcium_Concentrations (millimolar).
 * CONSTANTS[51] is ec50_SR in component SR_Fluxes (millimolar).
 * ALGEBRAIC[11] is k_Ca_SR in component SR_Fluxes (dimensionless).
 * CONSTANTS[52] is ko_Ca in component SR_Fluxes (per_milliM2_per_millis).
 * ALGEBRAIC[25] is ko_SR_Ca in component SR_Fluxes (per_milliM2_per_millis).
 * CONSTANTS[53] is ki_Ca in component SR_Fluxes (per_milliM_per_millis).
 * ALGEBRAIC[32] is ki_SR_Ca in component SR_Fluxes (per_milliM_per_millis).
 * CONSTANTS[54] is ki_m in component SR_Fluxes (per_millis).
 * CONSTANTS[55] is ko_m in component SR_Fluxes (per_millis).
 * CONSTANTS[56] is ks in component SR_Fluxes (per_millis).
 * CONSTANTS[57] is Km_f in component SR_Fluxes (millimolar).
 * CONSTANTS[58] is Km_r in component SR_Fluxes (millimolar).
 * ALGEBRAIC[86] is J_SR_Ca_rel in component SR_Fluxes (milliM_per_millis).
 * ALGEBRAIC[89] is J_SR_leak in component SR_Fluxes (milliM_per_millis).
 * ALGEBRAIC[88] is J_ser_Ca in component SR_Fluxes (milliM_per_millis).
 * ALGEBRAIC[39] is RI in component SR_Fluxes (dimensionless).
 * STATES[20] is Ry_Rr in component SR_Fluxes (dimensionless).
 * STATES[21] is Ry_Ro in component SR_Fluxes (dimensionless).
 * STATES[22] is Ry_Ri in component SR_Fluxes (dimensionless).
 * STATES[23] is Ca_i in component Calcium_Concentrations (millimolar).
 * CONSTANTS[59] is V_max_SR_CaP in component SR_Fluxes (milliM_per_millis).
 * CONSTANTS[60] is hill_SR_CaP in component SR_Fluxes (dimensionless).
 * CONSTANTS[61] is Mg_i in component Magnesium_Concentrations (millimolar).
 * STATES[24] is TnC_l in component Cytosolic_Ca_Buffers (millimolar).
 * STATES[25] is TnC_h_c in component Cytosolic_Ca_Buffers (millimolar).
 * STATES[26] is TnC_h_m in component Cytosolic_Ca_Buffers (millimolar).
 * STATES[27] is CaM in component Cytosolic_Ca_Buffers (millimolar).
 * STATES[28] is Myo_c in component Cytosolic_Ca_Buffers (millimolar).
 * STATES[29] is Myo_m in component Cytosolic_Ca_Buffers (millimolar).
 * STATES[30] is SRB in component Cytosolic_Ca_Buffers (millimolar).
 * CONSTANTS[62] is k_off_TnC_l in component Cytosolic_Ca_Buffers (per_millis).
 * CONSTANTS[63] is k_off_TnC_h_Ca in component Cytosolic_Ca_Buffers (per_millis).
 * CONSTANTS[64] is k_off_TnC_h_Mg in component Cytosolic_Ca_Buffers (per_millis).
 * CONSTANTS[65] is k_off_CaM in component Cytosolic_Ca_Buffers (per_millis).
 * CONSTANTS[66] is k_off_myo_Ca in component Cytosolic_Ca_Buffers (per_millis).
 * CONSTANTS[67] is k_off_myo_Mg in component Cytosolic_Ca_Buffers (per_millis).
 * CONSTANTS[68] is k_off_SR in component Cytosolic_Ca_Buffers (per_millis).
 * CONSTANTS[69] is k_on_TnC_l in component Cytosolic_Ca_Buffers (per_milliM_per_millis).
 * CONSTANTS[70] is k_on_TnC_h_Ca in component Cytosolic_Ca_Buffers (per_milliM_per_millis).
 * CONSTANTS[71] is k_on_TnC_h_Mg in component Cytosolic_Ca_Buffers (per_milliM_per_millis).
 * CONSTANTS[72] is k_on_CaM in component Cytosolic_Ca_Buffers (per_milliM_per_millis).
 * CONSTANTS[73] is k_on_myo_Ca in component Cytosolic_Ca_Buffers (per_milliM_per_millis).
 * CONSTANTS[74] is k_on_myo_Mg in component Cytosolic_Ca_Buffers (per_milliM_per_millis).
 * CONSTANTS[75] is k_on_SR in component Cytosolic_Ca_Buffers (per_milliM_per_millis).
 * CONSTANTS[76] is B_max_TnC_low in component Cytosolic_Ca_Buffers (millimolar).
 * CONSTANTS[77] is B_max_TnC_high in component Cytosolic_Ca_Buffers (millimolar).
 * CONSTANTS[78] is B_max_CaM in component Cytosolic_Ca_Buffers (millimolar).
 * CONSTANTS[79] is B_max_myosin in component Cytosolic_Ca_Buffers (millimolar).
 * CONSTANTS[80] is B_max_SR in component Cytosolic_Ca_Buffers (millimolar).
 * ALGEBRAIC[92] is J_Ca_B_cytosol in component Cytosolic_Ca_Buffers (milliM_per_millis).
 * CONSTANTS[105] is B_max_SL_low_j in component Junctional_and_SL_Ca_Buffers (millimolar).
 * CONSTANTS[106] is B_max_SL_low_sl in component Junctional_and_SL_Ca_Buffers (millimolar).
 * CONSTANTS[107] is B_max_SL_high_j in component Junctional_and_SL_Ca_Buffers (millimolar).
 * CONSTANTS[108] is B_max_SL_high_sl in component Junctional_and_SL_Ca_Buffers (millimolar).
 * CONSTANTS[81] is k_off_sl_l in component Junctional_and_SL_Ca_Buffers (per_millis).
 * CONSTANTS[82] is k_off_sl_h in component Junctional_and_SL_Ca_Buffers (per_millis).
 * CONSTANTS[83] is k_on_sl_l in component Junctional_and_SL_Ca_Buffers (per_milliM_per_millis).
 * CONSTANTS[84] is k_on_sl_h in component Junctional_and_SL_Ca_Buffers (per_milliM_per_millis).
 * STATES[31] is SLL_j in component Junctional_and_SL_Ca_Buffers (millimolar).
 * STATES[32] is SLL_sl in component Junctional_and_SL_Ca_Buffers (millimolar).
 * STATES[33] is SLH_j in component Junctional_and_SL_Ca_Buffers (millimolar).
 * STATES[34] is SLH_sl in component Junctional_and_SL_Ca_Buffers (millimolar).
 * ALGEBRAIC[90] is J_Ca_B_junction in component Junctional_and_SL_Ca_Buffers (milliM_per_millis).
 * ALGEBRAIC[91] is J_Ca_B_sl in component Junctional_and_SL_Ca_Buffers (milliM_per_millis).
 * CONSTANTS[85] is B_max_Na_j in component Sodium_Concentrations (millimolar).
 * CONSTANTS[86] is B_max_Na_sl in component Sodium_Concentrations (millimolar).
 * CONSTANTS[87] is k_off_Na in component Sodium_Concentrations (per_millis).
 * CONSTANTS[88] is k_on_Na in component Sodium_Concentrations (per_milliM_per_millis).
 * STATES[35] is Na_i in component Sodium_Concentrations (millimolar).
 * STATES[36] is Na_B_j in component Sodium_Concentrations (millimolar).
 * STATES[37] is Na_B_sl in component Sodium_Concentrations (millimolar).
 * CONSTANTS[109] is B_max_csqn in component Calcium_Concentrations (millimolar).
 * STATES[38] is Csqn_b in component Calcium_Concentrations (millimolar).
 * CONSTANTS[89] is k_off_csqn in component Calcium_Concentrations (per_millis).
 * CONSTANTS[90] is k_on_csqn in component Calcium_Concentrations (per_milliM_per_millis).
 * CONSTANTS[91] is Cl_i in component Chlorine_Concentrations (millimolar).
 * CONSTANTS[92] is Cl_o in component Chlorine_Concentrations (millimolar).
 * CONSTANTS[93] is p_Na_K in component Nerst_Potentials (dimensionless).
 * RATES[0] is d/dt V in component membrane (millivolt).
 * RATES[1] is d/dt m in component Fast_Na_Current (dimensionless).
 * RATES[2] is d/dt h in component Fast_Na_Current (dimensionless).
 * RATES[3] is d/dt j in component Fast_Na_Current (dimensionless).
 * RATES[6] is d/dt x_Kr in component Rapidly_Activating_K_Current (dimensionless).
 * RATES[7] is d/dt x_Ks in component Slowly_Activating_K_Current (dimensionless).
 * RATES[8] is d/dt x_to_s in component Transient_Outward_K_Current (dimensionless).
 * RATES[9] is d/dt y_to_s in component Transient_Outward_K_Current (dimensionless).
 * RATES[10] is d/dt x_to_f in component Transient_Outward_K_Current (dimensionless).
 * RATES[11] is d/dt y_to_f in component Transient_Outward_K_Current (dimensionless).
 * RATES[14] is d/dt d in component L_Type_Calcium_Current (dimensionless).
 * RATES[15] is d/dt f in component L_Type_Calcium_Current (dimensionless).
 * RATES[16] is d/dt f_2 in component L_Type_Calcium_Current (dimensionless).
 * RATES[17] is d/dt f_Ca_B_j in component L_Type_Calcium_Current (dimensionless).
 * RATES[18] is d/dt f_Ca_B_sl in component L_Type_Calcium_Current (dimensionless).
 * RATES[20] is d/dt Ry_Rr in component SR_Fluxes (dimensionless).
 * RATES[21] is d/dt Ry_Ro in component SR_Fluxes (dimensionless).
 * RATES[22] is d/dt Ry_Ri in component SR_Fluxes (dimensionless).
 * RATES[24] is d/dt TnC_l in component Cytosolic_Ca_Buffers (millimolar).
 * RATES[25] is d/dt TnC_h_c in component Cytosolic_Ca_Buffers (millimolar).
 * RATES[26] is d/dt TnC_h_m in component Cytosolic_Ca_Buffers (millimolar).
 * RATES[27] is d/dt CaM in component Cytosolic_Ca_Buffers (millimolar).
 * RATES[28] is d/dt Myo_c in component Cytosolic_Ca_Buffers (millimolar).
 * RATES[29] is d/dt Myo_m in component Cytosolic_Ca_Buffers (millimolar).
 * RATES[30] is d/dt SRB in component Cytosolic_Ca_Buffers (millimolar).
 * RATES[31] is d/dt SLL_j in component Junctional_and_SL_Ca_Buffers (millimolar).
 * RATES[32] is d/dt SLL_sl in component Junctional_and_SL_Ca_Buffers (millimolar).
 * RATES[33] is d/dt SLH_j in component Junctional_and_SL_Ca_Buffers (millimolar).
 * RATES[34] is d/dt SLH_sl in component Junctional_and_SL_Ca_Buffers (millimolar).
 * RATES[4] is d/dt Na_j in component Sodium_Concentrations (millimolar).
 * RATES[36] is d/dt Na_B_j in component Sodium_Concentrations (millimolar).
 * RATES[5] is d/dt Na_sl in component Sodium_Concentrations (millimolar).
 * RATES[37] is d/dt Na_B_sl in component Sodium_Concentrations (millimolar).
 * RATES[35] is d/dt Na_i in component Sodium_Concentrations (millimolar).
 * RATES[38] is d/dt Csqn_b in component Calcium_Concentrations (millimolar).
 * RATES[12] is d/dt Ca_j in component Calcium_Concentrations (millimolar).
 * RATES[13] is d/dt Ca_sl in component Calcium_Concentrations (millimolar).
 * RATES[23] is d/dt Ca_i in component Calcium_Concentrations (millimolar).
 * RATES[19] is d/dt Ca_SR in component Calcium_Concentrations (millimolar).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
STATES[0] = -8.413368e1;
CONSTANTS[0] = 8314;
CONSTANTS[1] = 310;
CONSTANTS[2] = 96485;
CONSTANTS[3] = 1.381e-10;
CONSTANTS[4] = 0;
CONSTANTS[5] = 40;
CONSTANTS[6] = 1000;
CONSTANTS[7] = 1;
CONSTANTS[8] = 0.11;
CONSTANTS[9] = 0.9;
CONSTANTS[10] = 100e-5;
CONSTANTS[11] = 10.25e-5;
CONSTANTS[12] = 8.2413e-13;
CONSTANTS[13] = 3.7243e-12;
CONSTANTS[14] = 1.8313e-14;
CONSTANTS[15] = 1.6386e-12;
CONSTANTS[16] = 18.86;
STATES[1] = 2.163678e-3;
STATES[2] = 7.13497e-1;
STATES[3] = 7.128671e-1;
CONSTANTS[17] = 0.597e-3;
CONSTANTS[18] = 140;
CONSTANTS[19] = 0.99;
CONSTANTS[20] = 5.4;
STATES[4] = 1.007931e1;
STATES[5] = 1.00781e1;
CONSTANTS[21] = 1.5;
CONSTANTS[22] = 11;
STATES[6] = 1.516232e-2;
CONSTANTS[23] = 0.035;
STATES[7] = 3.549354e-3;
CONSTANTS[24] = 0.0035;
CONSTANTS[25] = 0.0035;
CONSTANTS[26] = 0.002;
STATES[8] = 3.584727e-4;
STATES[9] = 8.087629e-1;
STATES[10] = 3.584625e-4;
STATES[11] = 9.999976e-1;
CONSTANTS[27] = 0.0156;
CONSTANTS[28] = 0.1144;
CONSTANTS[29] = 0.57153;
STATES[12] = 2.038197e-4;
STATES[13] = 1.184305e-4;
CONSTANTS[30] = 0.054813;
CONSTANTS[31] = 100e-3;
CONSTANTS[32] = 9e-3;
STATES[14] = 1.871177e-6;
STATES[15] = 9.804391e-1;
STATES[16] = 9.99401e-1;
STATES[17] = 2.847118e-2;
STATES[18] = 1.692189e-2;
CONSTANTS[33] = 138;
CONSTANTS[34] = 1.8;
CONSTANTS[35] = 1.9887e-4;
CONSTANTS[36] = 3.0375e-9;
CONSTANTS[37] = 5.4675e-8;
CONSTANTS[38] = 0.15e-3;
CONSTANTS[39] = 3.59e-3;
CONSTANTS[40] = 1.3;
CONSTANTS[41] = 12.29;
CONSTANTS[42] = 87.5;
CONSTANTS[43] = 0.32;
CONSTANTS[44] = 0.27;
CONSTANTS[45] = 4.5;
CONSTANTS[46] = 0.5e-3;
CONSTANTS[47] = 0.0673;
CONSTANTS[48] = 5.513e-4;
CONSTANTS[49] = 15;
CONSTANTS[50] = 1;
STATES[19] = 6.093596e-1;
CONSTANTS[51] = 0.45;
CONSTANTS[52] = 10;
CONSTANTS[53] = 0.5;
CONSTANTS[54] = 0.005;
CONSTANTS[55] = 0.06;
CONSTANTS[56] = 25;
CONSTANTS[57] = 0.246e-3;
CONSTANTS[58] = 1.7;
STATES[20] = 8.886338e-1;
STATES[21] = 1.126209e-6;
STATES[22] = 1.411382e-7;
STATES[23] = 9.658067e-5;
CONSTANTS[59] = 5.3114e-3;
CONSTANTS[60] = 1.787;
CONSTANTS[61] = 1;
STATES[24] = 9.757237e-3;
STATES[25] = 1.225914e-1;
STATES[26] = 8.12201e-3;
STATES[27] = 3.267494e-4;
STATES[28] = 2.520383e-3;
STATES[29] = 1.369529e-1;
STATES[30] = 2.373753e-3;
CONSTANTS[62] = 19.6e-3;
CONSTANTS[63] = 0.032e-3;
CONSTANTS[64] = 3.33e-3;
CONSTANTS[65] = 238e-3;
CONSTANTS[66] = 0.46e-3;
CONSTANTS[67] = 0.057e-3;
CONSTANTS[68] = 60e-3;
CONSTANTS[69] = 32.7;
CONSTANTS[70] = 2.37;
CONSTANTS[71] = 3e-3;
CONSTANTS[72] = 34;
CONSTANTS[73] = 13.8;
CONSTANTS[74] = 0.0157;
CONSTANTS[75] = 100;
CONSTANTS[76] = 70e-3;
CONSTANTS[77] = 140e-3;
CONSTANTS[78] = 24e-3;
CONSTANTS[79] = 140e-3;
CONSTANTS[80] = 17.1e-3;
CONSTANTS[81] = 1.3;
CONSTANTS[82] = 30e-3;
CONSTANTS[83] = 100;
CONSTANTS[84] = 100;
STATES[31] = 8.563314e-3;
STATES[32] = 1.097424e-2;
STATES[33] = 8.053908e-2;
STATES[34] = 1.235381e-1;
CONSTANTS[85] = 7.561;
CONSTANTS[86] = 1.65;
CONSTANTS[87] = 1e-3;
CONSTANTS[88] = 0.1e-3;
STATES[35] = 1.007825e1;
STATES[36] = 3.796195e0;
STATES[37] = 8.283308e-1;
STATES[38] = 1.258048e0;
CONSTANTS[89] = 65;
CONSTANTS[90] = 100;
CONSTANTS[91] = 15;
CONSTANTS[92] = 150;
CONSTANTS[93] = 0.01833;
CONSTANTS[94] = CONSTANTS[2]/( CONSTANTS[0]*CONSTANTS[1]);
CONSTANTS[95] = 1.00000 - CONSTANTS[8];
CONSTANTS[96] = 1.00000 - CONSTANTS[9];
CONSTANTS[97] =   3.14159265358979*pow(CONSTANTS[11], 2.00000)*CONSTANTS[10];
CONSTANTS[98] = (exp(CONSTANTS[18]/67.3000) - 1.00000)/7.00000;
CONSTANTS[99] =  0.650000*CONSTANTS[97];
CONSTANTS[100] =  (1.00000/CONSTANTS[94])*log(CONSTANTS[20]/CONSTANTS[33]);
CONSTANTS[101] =  (1.00000/CONSTANTS[94])*log(CONSTANTS[91]/CONSTANTS[92]);
CONSTANTS[102] =  0.0200000*CONSTANTS[97];
CONSTANTS[103] =  0.0350000*CONSTANTS[97];
CONSTANTS[104] =  0.000539000*CONSTANTS[97];
CONSTANTS[105] = ( 0.000460000*CONSTANTS[99])/CONSTANTS[104];
CONSTANTS[106] = ( 0.0374000*CONSTANTS[99])/CONSTANTS[102];
CONSTANTS[107] = ( 0.000165000*CONSTANTS[99])/CONSTANTS[104];
CONSTANTS[108] = ( 0.0134000*CONSTANTS[99])/CONSTANTS[102];
CONSTANTS[109] = ( 0.140000*CONSTANTS[99])/CONSTANTS[103];
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
RATES[17] =  1.70000*STATES[12]*(1.00000 - STATES[17]) -  0.0119000*STATES[17];
RATES[18] =  1.70000*STATES[13]*(1.00000 - STATES[18]) -  0.0119000*STATES[18];
RATES[35] =  (CONSTANTS[15]/CONSTANTS[99])*(STATES[5] - STATES[35]);
ALGEBRAIC[0] = 1.00000/pow(1.00000+exp(- (56.8600+STATES[0])/9.03000), 2.00000);
ALGEBRAIC[12] =  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[1] = (ALGEBRAIC[0] - STATES[1])/ALGEBRAIC[12];
ALGEBRAIC[3] = 1.00000/(1.00000+exp(- (STATES[0]+10.0000)/5.00000));
ALGEBRAIC[15] = 3300.00/( (1.00000+exp((- 22.0000 - STATES[0])/9.00000))*(1.00000+exp((STATES[0]+11.0000)/9.00000)))+230.000/(1.00000+exp((STATES[0]+40.0000)/20.0000));
RATES[6] = (ALGEBRAIC[3] - STATES[6])/ALGEBRAIC[15];
ALGEBRAIC[4] = 1.00000/(1.00000+exp(- (STATES[0]+3.80000)/14.2500));
ALGEBRAIC[16] = 990.100/(1.00000+exp(- (STATES[0]+2.43600)/14.1200));
RATES[7] = (ALGEBRAIC[4] - STATES[7])/ALGEBRAIC[16];
ALGEBRAIC[5] = 1.00000/(1.00000+exp(- (STATES[0] - 19.0000)/13.0000));
ALGEBRAIC[17] = 9.00000/(1.00000+exp((STATES[0]+3.00000)/15.0000))+0.500000;
RATES[8] = (ALGEBRAIC[5] - STATES[8])/ALGEBRAIC[17];
ALGEBRAIC[6] = 1.00000/(1.00000+exp((STATES[0]+19.5000)/5.00000));
ALGEBRAIC[18] = 800.000/(1.00000+exp((STATES[0]+60.0000)/10.0000))+30.0000;
RATES[9] = (ALGEBRAIC[6] - STATES[9])/ALGEBRAIC[18];
ALGEBRAIC[19] =  8.50000*exp(- pow((STATES[0]+45.0000)/50.0000, 2.00000))+0.500000;
RATES[10] = (ALGEBRAIC[5] - STATES[10])/ALGEBRAIC[19];
ALGEBRAIC[20] =  85.0000*exp(- pow(STATES[0]+40.0000, 2.00000)/220.000)+7.00000;
RATES[11] = (ALGEBRAIC[6] - STATES[11])/ALGEBRAIC[20];
ALGEBRAIC[11] = CONSTANTS[49] - (CONSTANTS[49] - CONSTANTS[50])/(1.00000+pow(CONSTANTS[51]/STATES[19], 2.50000));
ALGEBRAIC[25] = CONSTANTS[52]/ALGEBRAIC[11];
ALGEBRAIC[32] =  CONSTANTS[53]*ALGEBRAIC[11];
RATES[21] = ( ALGEBRAIC[25]*pow(STATES[12], 2.00000)*STATES[20] -  CONSTANTS[55]*STATES[21]) - ( ALGEBRAIC[32]*STATES[12]*STATES[21] -  CONSTANTS[54]*STATES[22]);
ALGEBRAIC[1] = (STATES[0]>=- 40.0000 ? 0.00000 :  0.0570000*exp(- (STATES[0]+80.0000)/6.80000));
ALGEBRAIC[13] = (STATES[0]>=- 40.0000 ? 5.92310/(1.00000+exp(- (STATES[0]+10.6600)/11.1000)) :  2.70000*exp( 0.0790000*STATES[0])+ 310000.*exp( 0.348500*STATES[0]));
ALGEBRAIC[26] = 1.00000/(ALGEBRAIC[1]+ALGEBRAIC[13]);
ALGEBRAIC[33] = 1.00000/pow(1.00000+exp((STATES[0]+71.5500)/7.43000), 2.00000);
RATES[2] = (ALGEBRAIC[33] - STATES[2])/ALGEBRAIC[26];
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[14] = (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[27] = 1.00000/(ALGEBRAIC[2]+ALGEBRAIC[14]);
ALGEBRAIC[34] = 1.00000/pow(1.00000+exp((STATES[0]+71.5500)/7.43000), 2.00000);
RATES[3] = (ALGEBRAIC[34] - STATES[3])/ALGEBRAIC[27];
ALGEBRAIC[39] = ((1.00000 - STATES[20]) - STATES[21]) - STATES[22];
RATES[20] = ( CONSTANTS[54]*ALGEBRAIC[39] -  ALGEBRAIC[32]*STATES[12]*STATES[20]) - ( ALGEBRAIC[25]*pow(STATES[12], 2.00000)*STATES[20] -  CONSTANTS[55]*STATES[21]);
RATES[22] = ( ALGEBRAIC[32]*STATES[12]*STATES[21] -  CONSTANTS[54]*STATES[22]) - ( CONSTANTS[55]*STATES[22] -  ALGEBRAIC[25]*pow(STATES[12], 2.00000)*ALGEBRAIC[39]);
ALGEBRAIC[7] = 1.00000/(1.00000+exp(- (STATES[0]+5.00000)/6.00000));
ALGEBRAIC[21] = 1.40000/(1.00000+exp((- 35.0000 - STATES[0])/13.0000))+0.250000;
ALGEBRAIC[28] = 1.40000/(1.00000+exp((STATES[0]+5.00000)/5.00000));
ALGEBRAIC[35] = 1.00000/(1.00000+exp((50.0000 - STATES[0])/20.0000));
ALGEBRAIC[40] =  ALGEBRAIC[21]*ALGEBRAIC[28]+ALGEBRAIC[35];
RATES[14] = (ALGEBRAIC[7] - STATES[14])/ALGEBRAIC[40];
ALGEBRAIC[8] = 1.00000/(1.00000+exp((STATES[0]+20.0000)/7.00000));
ALGEBRAIC[22] =  1102.50*exp(- pow((STATES[0]+27.0000)/15.0000, 2.00000));
ALGEBRAIC[29] = 200.000/(1.00000+exp((13.0000 - STATES[0])/10.0000));
ALGEBRAIC[36] = 180.000/(1.00000+exp((STATES[0]+30.0000)/10.0000))+20.0000;
ALGEBRAIC[41] = ALGEBRAIC[22]+ALGEBRAIC[29]+ALGEBRAIC[36];
RATES[15] = (ALGEBRAIC[8] - STATES[15])/ALGEBRAIC[41];
ALGEBRAIC[9] = 0.670000/(1.00000+exp((STATES[0]+35.0000)/7.00000))+0.330000;
ALGEBRAIC[23] =  300.000*exp(- pow(STATES[0]+25.0000, 2.00000)/170.000);
ALGEBRAIC[30] = 31.0000/(1.00000+exp((25.0000 - STATES[0])/10.0000));
ALGEBRAIC[37] = 16.0000/(1.00000+exp((STATES[0]+30.0000)/10.0000));
ALGEBRAIC[42] = ALGEBRAIC[23]+ALGEBRAIC[30]+ALGEBRAIC[37];
RATES[16] = (ALGEBRAIC[9] - STATES[16])/ALGEBRAIC[42];
RATES[24] =  CONSTANTS[69]*STATES[23]*(CONSTANTS[76] - STATES[24]) -  CONSTANTS[62]*STATES[24];
RATES[31] =  CONSTANTS[83]*STATES[12]*(CONSTANTS[105] - STATES[31]) -  CONSTANTS[81]*STATES[31];
RATES[25] =  CONSTANTS[70]*STATES[23]*((CONSTANTS[77] - STATES[25]) - STATES[26]) -  CONSTANTS[63]*STATES[25];
RATES[38] =  CONSTANTS[90]*STATES[19]*(CONSTANTS[109] - STATES[38]) -  CONSTANTS[89]*STATES[38];
RATES[32] =  CONSTANTS[83]*STATES[13]*(CONSTANTS[106] - STATES[32]) -  CONSTANTS[81]*STATES[32];
RATES[26] =  CONSTANTS[71]*CONSTANTS[61]*((CONSTANTS[77] - STATES[25]) - STATES[26]) -  CONSTANTS[64]*STATES[26];
ALGEBRAIC[86] =  CONSTANTS[56]*STATES[21]*(STATES[19] - STATES[12]);
ALGEBRAIC[89] =  5.34800e-06*(STATES[19] - STATES[12]);
ALGEBRAIC[88] = ( CONSTANTS[59]*(pow(STATES[23]/CONSTANTS[57], CONSTANTS[60]) - pow(STATES[19]/CONSTANTS[58], CONSTANTS[60])))/(1.00000+pow(STATES[23]/CONSTANTS[57], CONSTANTS[60])+pow(STATES[19]/CONSTANTS[58], CONSTANTS[60]));
RATES[19] = (ALGEBRAIC[88] - (( ALGEBRAIC[89]*CONSTANTS[99])/CONSTANTS[103]+ALGEBRAIC[86])) - RATES[38];
RATES[33] =  CONSTANTS[84]*STATES[12]*(CONSTANTS[107] - STATES[33]) -  CONSTANTS[82]*STATES[33];
RATES[27] =  CONSTANTS[72]*STATES[23]*(CONSTANTS[78] - STATES[27]) -  CONSTANTS[65]*STATES[27];
RATES[34] =  CONSTANTS[84]*STATES[13]*(CONSTANTS[108] - STATES[34]) -  CONSTANTS[82]*STATES[34];
RATES[28] =  CONSTANTS[73]*STATES[23]*((CONSTANTS[79] - STATES[28]) - STATES[29]) -  CONSTANTS[66]*STATES[28];
RATES[29] =  CONSTANTS[74]*CONSTANTS[61]*((CONSTANTS[79] - STATES[28]) - STATES[29]) -  CONSTANTS[67]*STATES[29];
RATES[30] =  CONSTANTS[75]*STATES[23]*(CONSTANTS[80] - STATES[30]) -  CONSTANTS[68]*STATES[30];
RATES[36] =  CONSTANTS[88]*STATES[4]*(CONSTANTS[85] - STATES[36]) -  CONSTANTS[87]*STATES[36];
RATES[37] =  CONSTANTS[88]*STATES[5]*(CONSTANTS[86] - STATES[37]) -  CONSTANTS[87]*STATES[37];
ALGEBRAIC[92] = RATES[24]+RATES[25]+RATES[26]+RATES[27]+RATES[28]+RATES[29]+RATES[30];
RATES[23] = (( - ALGEBRAIC[88]*CONSTANTS[103])/CONSTANTS[99] - ALGEBRAIC[92])+ (CONSTANTS[13]/CONSTANTS[99])*(STATES[13] - STATES[23]);
ALGEBRAIC[93] =  (1.00000/CONSTANTS[94])*log(CONSTANTS[18]/STATES[4]);
ALGEBRAIC[94] =  CONSTANTS[8]*CONSTANTS[16]*pow(STATES[1], 3.00000)*STATES[2]*STATES[3]*(STATES[0] - ALGEBRAIC[93]);
ALGEBRAIC[95] =  CONSTANTS[8]*CONSTANTS[17]*(STATES[0] - ALGEBRAIC[93]);
ALGEBRAIC[24] = 1.00000/(1.00000+ 0.124500*exp( - 0.100000*STATES[0]*CONSTANTS[94])+ 0.0365000*CONSTANTS[98]*exp( - STATES[0]*CONSTANTS[94]));
ALGEBRAIC[31] = ( CONSTANTS[8]*CONSTANTS[19]*ALGEBRAIC[24]*CONSTANTS[20])/( (1.00000+pow(CONSTANTS[22]/STATES[4], 4.00000))*(CONSTANTS[20]+CONSTANTS[21]));
ALGEBRAIC[63] = ( CONSTANTS[36]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( STATES[4]*exp( STATES[0]*CONSTANTS[94]) - CONSTANTS[18]))/(exp( STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[69] =  CONSTANTS[9]*ALGEBRAIC[63]*STATES[14]*STATES[15]*STATES[16]*(1.00000 - STATES[17]);
ALGEBRAIC[71] = 1.00000/(1.00000+pow(CONSTANTS[38]/STATES[12], 2.00000));
ALGEBRAIC[75] =  exp( CONSTANTS[44]*STATES[0]*CONSTANTS[94])*pow(STATES[4], 3.00000)*CONSTANTS[34];
ALGEBRAIC[77] =  exp( (CONSTANTS[44] - 1.00000)*STATES[0]*CONSTANTS[94])*pow(CONSTANTS[18], 3.00000)*STATES[12];
ALGEBRAIC[79] =  CONSTANTS[39]*pow(CONSTANTS[18], 3.00000)*(1.00000+pow(STATES[4]/CONSTANTS[41], 3.00000))+ pow(CONSTANTS[42], 3.00000)*STATES[12]*(1.00000+STATES[12]/CONSTANTS[39])+ CONSTANTS[40]*pow(STATES[4], 3.00000)+ pow(STATES[4], 3.00000)*CONSTANTS[34]+ pow(CONSTANTS[18], 3.00000)*STATES[12];
ALGEBRAIC[81] = ( CONSTANTS[8]*CONSTANTS[45]*ALGEBRAIC[71]*(ALGEBRAIC[75] - ALGEBRAIC[77]))/( ALGEBRAIC[79]*(1.00000+ CONSTANTS[43]*exp( (CONSTANTS[44] - 1.00000)*STATES[0]*CONSTANTS[94])));
ALGEBRAIC[96] = ALGEBRAIC[94]+ALGEBRAIC[95]+ 3.00000*ALGEBRAIC[81]+ 3.00000*ALGEBRAIC[31]+ALGEBRAIC[69];
RATES[4] = (( - ALGEBRAIC[96]*CONSTANTS[3])/( CONSTANTS[104]*CONSTANTS[2])+ (CONSTANTS[14]/CONSTANTS[104])*(STATES[5] - STATES[4])) - RATES[36];
ALGEBRAIC[97] =  (1.00000/CONSTANTS[94])*log(CONSTANTS[18]/STATES[5]);
ALGEBRAIC[98] =  CONSTANTS[95]*CONSTANTS[16]*pow(STATES[1], 3.00000)*STATES[2]*STATES[3]*(STATES[0] - ALGEBRAIC[97]);
ALGEBRAIC[100] =  CONSTANTS[95]*CONSTANTS[17]*(STATES[0] - ALGEBRAIC[97]);
ALGEBRAIC[38] = ( CONSTANTS[95]*CONSTANTS[19]*ALGEBRAIC[24]*CONSTANTS[20])/( (1.00000+pow(CONSTANTS[22]/STATES[5], 4.00000))*(CONSTANTS[20]+CONSTANTS[21]));
ALGEBRAIC[64] = ( CONSTANTS[36]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( STATES[5]*exp( STATES[0]*CONSTANTS[94]) - CONSTANTS[18]))/(exp( STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[70] =  CONSTANTS[96]*ALGEBRAIC[64]*STATES[14]*STATES[15]*STATES[16]*(1.00000 - STATES[18]);
ALGEBRAIC[73] = 1.00000/(1.00000+pow(CONSTANTS[38]/STATES[13], 2.00000));
ALGEBRAIC[76] =  exp( CONSTANTS[44]*STATES[0]*CONSTANTS[94])*pow(STATES[5], 3.00000)*CONSTANTS[34];
ALGEBRAIC[78] =  exp( (CONSTANTS[44] - 1.00000)*STATES[0]*CONSTANTS[94])*pow(CONSTANTS[18], 3.00000)*STATES[13];
ALGEBRAIC[80] =  CONSTANTS[39]*pow(CONSTANTS[18], 3.00000)*(1.00000+pow(STATES[5]/CONSTANTS[41], 3.00000))+ pow(CONSTANTS[42], 3.00000)*STATES[13]*(1.00000+STATES[13]/CONSTANTS[39])+ CONSTANTS[40]*pow(STATES[5], 3.00000)+ pow(STATES[5], 3.00000)*CONSTANTS[34]+ pow(CONSTANTS[18], 3.00000)*STATES[13];
ALGEBRAIC[82] = ( CONSTANTS[95]*CONSTANTS[45]*ALGEBRAIC[73]*(ALGEBRAIC[76] - ALGEBRAIC[78]))/( ALGEBRAIC[80]*(1.00000+ CONSTANTS[43]*exp( (CONSTANTS[44] - 1.00000)*STATES[0]*CONSTANTS[94])));
ALGEBRAIC[102] = ALGEBRAIC[98]+ALGEBRAIC[100]+ 3.00000*ALGEBRAIC[82]+ 3.00000*ALGEBRAIC[38]+ALGEBRAIC[70];
RATES[5] = (( - ALGEBRAIC[102]*CONSTANTS[3])/( CONSTANTS[102]*CONSTANTS[2])+ (CONSTANTS[14]/CONSTANTS[102])*(STATES[4] - STATES[5])+ (CONSTANTS[15]/CONSTANTS[102])*(STATES[35] - STATES[5])) - RATES[37];
ALGEBRAIC[60] = ( CONSTANTS[35]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( STATES[12]*exp( 2.00000*STATES[0]*CONSTANTS[94]) - CONSTANTS[34]))/(exp( 2.00000*STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[65] =  CONSTANTS[9]*ALGEBRAIC[60]*STATES[14]*STATES[15]*STATES[16]*(1.00000 - STATES[17]);
ALGEBRAIC[83] = ( CONSTANTS[8]*CONSTANTS[47]*pow(STATES[12], 1.60000))/(pow(CONSTANTS[46], 1.60000)+pow(STATES[12], 1.60000));
ALGEBRAIC[109] =  (1.00000/( 2.00000*CONSTANTS[94]))*log(CONSTANTS[34]/STATES[12]);
ALGEBRAIC[110] =  CONSTANTS[8]*CONSTANTS[48]*(STATES[0] - ALGEBRAIC[109]);
ALGEBRAIC[111] = (ALGEBRAIC[65]+ALGEBRAIC[110]+ALGEBRAIC[83]) -  2.00000*ALGEBRAIC[81];
ALGEBRAIC[90] = RATES[31]+RATES[33];
RATES[12] = ((( - ALGEBRAIC[111]*CONSTANTS[3])/( CONSTANTS[104]*2.00000*CONSTANTS[2])+ (CONSTANTS[12]/CONSTANTS[104])*(STATES[13] - STATES[12])) - ALGEBRAIC[90])+( ALGEBRAIC[86]*CONSTANTS[103])/CONSTANTS[104]+( ALGEBRAIC[89]*CONSTANTS[99])/CONSTANTS[104];
ALGEBRAIC[61] = ( CONSTANTS[35]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( STATES[13]*exp( 2.00000*STATES[0]*CONSTANTS[94]) - CONSTANTS[34]))/(exp( 2.00000*STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[66] =  CONSTANTS[96]*ALGEBRAIC[61]*STATES[14]*STATES[15]*STATES[16]*(1.00000 - STATES[18]);
ALGEBRAIC[85] = ( CONSTANTS[95]*CONSTANTS[47]*pow(STATES[13], 1.60000))/(pow(CONSTANTS[46], 1.60000)+pow(STATES[13], 1.60000));
ALGEBRAIC[112] =  (1.00000/( 2.00000*CONSTANTS[94]))*log(CONSTANTS[34]/STATES[13]);
ALGEBRAIC[113] =  CONSTANTS[95]*CONSTANTS[48]*(STATES[0] - ALGEBRAIC[112]);
ALGEBRAIC[114] = (ALGEBRAIC[66]+ALGEBRAIC[113]+ALGEBRAIC[85]) -  2.00000*ALGEBRAIC[82];
ALGEBRAIC[91] = RATES[32]+RATES[34];
RATES[13] = (( - ALGEBRAIC[114]*CONSTANTS[3])/( CONSTANTS[102]*2.00000*CONSTANTS[2])+ (CONSTANTS[12]/CONSTANTS[102])*(STATES[12] - STATES[13])+ (CONSTANTS[13]/CONSTANTS[102])*(STATES[23] - STATES[13])) - ALGEBRAIC[91];
ALGEBRAIC[43] = ALGEBRAIC[31]+ALGEBRAIC[38];
ALGEBRAIC[44] = 1.00000/(1.00000+exp((STATES[0]+74.0000)/24.0000));
ALGEBRAIC[45] =  CONSTANTS[23]* pow((CONSTANTS[20]/5.40000), 1.0 / 2)*STATES[6]*ALGEBRAIC[44]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[104] =  (1.00000/CONSTANTS[94])*log((CONSTANTS[20]+ CONSTANTS[93]*CONSTANTS[18])/(CONSTANTS[33]+ CONSTANTS[93]*STATES[35]));
ALGEBRAIC[105] =  CONSTANTS[8]*CONSTANTS[24]*pow(STATES[7], 2.00000)*(STATES[0] - ALGEBRAIC[104]);
ALGEBRAIC[106] =  CONSTANTS[95]*CONSTANTS[25]*pow(STATES[7], 2.00000)*(STATES[0] - ALGEBRAIC[104]);
ALGEBRAIC[107] = ALGEBRAIC[105]+ALGEBRAIC[106];
ALGEBRAIC[46] = 1.00000/(1.00000+exp(7.48800 - STATES[0]/5.98000));
ALGEBRAIC[47] =  CONSTANTS[26]*ALGEBRAIC[46]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[48] =  CONSTANTS[27]*STATES[8]*STATES[9]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[49] =  CONSTANTS[28]*STATES[10]*STATES[11]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[50] = ALGEBRAIC[48]+ALGEBRAIC[49];
ALGEBRAIC[51] = 4.09380/(1.00000+exp( 0.121650*((STATES[0] - CONSTANTS[100]) - 49.9344)));
ALGEBRAIC[52] = ( 15.7197*exp( 0.0673900*((STATES[0] - CONSTANTS[100]) - 3.25710))+exp( 0.0617500*((STATES[0] - CONSTANTS[100]) - 594.310)))/(1.00000+exp( - 0.162850*((STATES[0] - CONSTANTS[100])+14.2067)));
ALGEBRAIC[53] = ALGEBRAIC[51]/(ALGEBRAIC[51]+ALGEBRAIC[52]);
ALGEBRAIC[54] =  CONSTANTS[29]* pow((CONSTANTS[20]/5.40000), 1.0 / 2)*ALGEBRAIC[53]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[62] = ( CONSTANTS[37]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( CONSTANTS[33]*exp( STATES[0]*CONSTANTS[94]) - CONSTANTS[20]))/(exp( STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[68] =  ALGEBRAIC[62]*STATES[14]*STATES[15]*STATES[16]*( CONSTANTS[9]*(1.00000 - STATES[17])+ CONSTANTS[96]*(1.00000 - STATES[18]));
ALGEBRAIC[108] = ((ALGEBRAIC[50]+ALGEBRAIC[45]+ALGEBRAIC[107]+ALGEBRAIC[54]) -  2.00000*ALGEBRAIC[43])+ALGEBRAIC[68]+ALGEBRAIC[47];
ALGEBRAIC[103] = ALGEBRAIC[96]+ALGEBRAIC[102];
ALGEBRAIC[55] =  (( CONSTANTS[8]*CONSTANTS[30])/(1.00000+CONSTANTS[31]/STATES[12]))*(STATES[0] - CONSTANTS[101]);
ALGEBRAIC[56] =  (( CONSTANTS[95]*CONSTANTS[30])/(1.00000+CONSTANTS[31]/STATES[13]))*(STATES[0] - CONSTANTS[101]);
ALGEBRAIC[57] = ALGEBRAIC[55]+ALGEBRAIC[56];
ALGEBRAIC[58] =  CONSTANTS[32]*(STATES[0] - CONSTANTS[101]);
ALGEBRAIC[59] = ALGEBRAIC[57]+ALGEBRAIC[58];
ALGEBRAIC[116] = ALGEBRAIC[111]+ALGEBRAIC[114];
ALGEBRAIC[117] = ALGEBRAIC[103]+ALGEBRAIC[59]+ALGEBRAIC[116]+ALGEBRAIC[108];
ALGEBRAIC[10] = ((VOI - CONSTANTS[4]) -  floor((VOI - CONSTANTS[4])/CONSTANTS[6])*CONSTANTS[6]<=CONSTANTS[7] ? CONSTANTS[5] : 0.00000);
RATES[0] = - (ALGEBRAIC[117] - ALGEBRAIC[10]);
}
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[12] =  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[15] = 3300.00/( (1.00000+exp((- 22.0000 - STATES[0])/9.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[16] = 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[17] = 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[18] = 800.000/(1.00000+exp((STATES[0]+60.0000)/10.0000))+30.0000;
ALGEBRAIC[19] =  8.50000*exp(- pow((STATES[0]+45.0000)/50.0000, 2.00000))+0.500000;
ALGEBRAIC[20] =  85.0000*exp(- pow(STATES[0]+40.0000, 2.00000)/220.000)+7.00000;
ALGEBRAIC[11] = CONSTANTS[49] - (CONSTANTS[49] - CONSTANTS[50])/(1.00000+pow(CONSTANTS[51]/STATES[19], 2.50000));
ALGEBRAIC[25] = CONSTANTS[52]/ALGEBRAIC[11];
ALGEBRAIC[32] =  CONSTANTS[53]*ALGEBRAIC[11];
ALGEBRAIC[1] = (STATES[0]>=- 40.0000 ? 0.00000 :  0.0570000*exp(- (STATES[0]+80.0000)/6.80000));
ALGEBRAIC[13] = (STATES[0]>=- 40.0000 ? 5.92310/(1.00000+exp(- (STATES[0]+10.6600)/11.1000)) :  2.70000*exp( 0.0790000*STATES[0])+ 310000.*exp( 0.348500*STATES[0]));
ALGEBRAIC[26] = 1.00000/(ALGEBRAIC[1]+ALGEBRAIC[13]);
ALGEBRAIC[33] = 1.00000/pow(1.00000+exp((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[14] = (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[27] = 1.00000/(ALGEBRAIC[2]+ALGEBRAIC[14]);
ALGEBRAIC[34] = 1.00000/pow(1.00000+exp((STATES[0]+71.5500)/7.43000), 2.00000);
ALGEBRAIC[39] = ((1.00000 - STATES[20]) - STATES[21]) - STATES[22];
ALGEBRAIC[7] = 1.00000/(1.00000+exp(- (STATES[0]+5.00000)/6.00000));
ALGEBRAIC[21] = 1.40000/(1.00000+exp((- 35.0000 - STATES[0])/13.0000))+0.250000;
ALGEBRAIC[28] = 1.40000/(1.00000+exp((STATES[0]+5.00000)/5.00000));
ALGEBRAIC[35] = 1.00000/(1.00000+exp((50.0000 - STATES[0])/20.0000));
ALGEBRAIC[40] =  ALGEBRAIC[21]*ALGEBRAIC[28]+ALGEBRAIC[35];
ALGEBRAIC[8] = 1.00000/(1.00000+exp((STATES[0]+20.0000)/7.00000));
ALGEBRAIC[22] =  1102.50*exp(- pow((STATES[0]+27.0000)/15.0000, 2.00000));
ALGEBRAIC[29] = 200.000/(1.00000+exp((13.0000 - STATES[0])/10.0000));
ALGEBRAIC[36] = 180.000/(1.00000+exp((STATES[0]+30.0000)/10.0000))+20.0000;
ALGEBRAIC[41] = ALGEBRAIC[22]+ALGEBRAIC[29]+ALGEBRAIC[36];
ALGEBRAIC[9] = 0.670000/(1.00000+exp((STATES[0]+35.0000)/7.00000))+0.330000;
ALGEBRAIC[23] =  300.000*exp(- pow(STATES[0]+25.0000, 2.00000)/170.000);
ALGEBRAIC[30] = 31.0000/(1.00000+exp((25.0000 - STATES[0])/10.0000));
ALGEBRAIC[37] = 16.0000/(1.00000+exp((STATES[0]+30.0000)/10.0000));
ALGEBRAIC[42] = ALGEBRAIC[23]+ALGEBRAIC[30]+ALGEBRAIC[37];
ALGEBRAIC[86] =  CONSTANTS[56]*STATES[21]*(STATES[19] - STATES[12]);
ALGEBRAIC[89] =  5.34800e-06*(STATES[19] - STATES[12]);
ALGEBRAIC[88] = ( CONSTANTS[59]*(pow(STATES[23]/CONSTANTS[57], CONSTANTS[60]) - pow(STATES[19]/CONSTANTS[58], CONSTANTS[60])))/(1.00000+pow(STATES[23]/CONSTANTS[57], CONSTANTS[60])+pow(STATES[19]/CONSTANTS[58], CONSTANTS[60]));
ALGEBRAIC[92] = RATES[24]+RATES[25]+RATES[26]+RATES[27]+RATES[28]+RATES[29]+RATES[30];
ALGEBRAIC[93] =  (1.00000/CONSTANTS[94])*log(CONSTANTS[18]/STATES[4]);
ALGEBRAIC[94] =  CONSTANTS[8]*CONSTANTS[16]*pow(STATES[1], 3.00000)*STATES[2]*STATES[3]*(STATES[0] - ALGEBRAIC[93]);
ALGEBRAIC[95] =  CONSTANTS[8]*CONSTANTS[17]*(STATES[0] - ALGEBRAIC[93]);
ALGEBRAIC[24] = 1.00000/(1.00000+ 0.124500*exp( - 0.100000*STATES[0]*CONSTANTS[94])+ 0.0365000*CONSTANTS[98]*exp( - STATES[0]*CONSTANTS[94]));
ALGEBRAIC[31] = ( CONSTANTS[8]*CONSTANTS[19]*ALGEBRAIC[24]*CONSTANTS[20])/( (1.00000+pow(CONSTANTS[22]/STATES[4], 4.00000))*(CONSTANTS[20]+CONSTANTS[21]));
ALGEBRAIC[63] = ( CONSTANTS[36]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( STATES[4]*exp( STATES[0]*CONSTANTS[94]) - CONSTANTS[18]))/(exp( STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[69] =  CONSTANTS[9]*ALGEBRAIC[63]*STATES[14]*STATES[15]*STATES[16]*(1.00000 - STATES[17]);
ALGEBRAIC[71] = 1.00000/(1.00000+pow(CONSTANTS[38]/STATES[12], 2.00000));
ALGEBRAIC[75] =  exp( CONSTANTS[44]*STATES[0]*CONSTANTS[94])*pow(STATES[4], 3.00000)*CONSTANTS[34];
ALGEBRAIC[77] =  exp( (CONSTANTS[44] - 1.00000)*STATES[0]*CONSTANTS[94])*pow(CONSTANTS[18], 3.00000)*STATES[12];
ALGEBRAIC[79] =  CONSTANTS[39]*pow(CONSTANTS[18], 3.00000)*(1.00000+pow(STATES[4]/CONSTANTS[41], 3.00000))+ pow(CONSTANTS[42], 3.00000)*STATES[12]*(1.00000+STATES[12]/CONSTANTS[39])+ CONSTANTS[40]*pow(STATES[4], 3.00000)+ pow(STATES[4], 3.00000)*CONSTANTS[34]+ pow(CONSTANTS[18], 3.00000)*STATES[12];
ALGEBRAIC[81] = ( CONSTANTS[8]*CONSTANTS[45]*ALGEBRAIC[71]*(ALGEBRAIC[75] - ALGEBRAIC[77]))/( ALGEBRAIC[79]*(1.00000+ CONSTANTS[43]*exp( (CONSTANTS[44] - 1.00000)*STATES[0]*CONSTANTS[94])));
ALGEBRAIC[96] = ALGEBRAIC[94]+ALGEBRAIC[95]+ 3.00000*ALGEBRAIC[81]+ 3.00000*ALGEBRAIC[31]+ALGEBRAIC[69];
ALGEBRAIC[97] =  (1.00000/CONSTANTS[94])*log(CONSTANTS[18]/STATES[5]);
ALGEBRAIC[98] =  CONSTANTS[95]*CONSTANTS[16]*pow(STATES[1], 3.00000)*STATES[2]*STATES[3]*(STATES[0] - ALGEBRAIC[97]);
ALGEBRAIC[100] =  CONSTANTS[95]*CONSTANTS[17]*(STATES[0] - ALGEBRAIC[97]);
ALGEBRAIC[38] = ( CONSTANTS[95]*CONSTANTS[19]*ALGEBRAIC[24]*CONSTANTS[20])/( (1.00000+pow(CONSTANTS[22]/STATES[5], 4.00000))*(CONSTANTS[20]+CONSTANTS[21]));
ALGEBRAIC[64] = ( CONSTANTS[36]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( STATES[5]*exp( STATES[0]*CONSTANTS[94]) - CONSTANTS[18]))/(exp( STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[70] =  CONSTANTS[96]*ALGEBRAIC[64]*STATES[14]*STATES[15]*STATES[16]*(1.00000 - STATES[18]);
ALGEBRAIC[73] = 1.00000/(1.00000+pow(CONSTANTS[38]/STATES[13], 2.00000));
ALGEBRAIC[76] =  exp( CONSTANTS[44]*STATES[0]*CONSTANTS[94])*pow(STATES[5], 3.00000)*CONSTANTS[34];
ALGEBRAIC[78] =  exp( (CONSTANTS[44] - 1.00000)*STATES[0]*CONSTANTS[94])*pow(CONSTANTS[18], 3.00000)*STATES[13];
ALGEBRAIC[80] =  CONSTANTS[39]*pow(CONSTANTS[18], 3.00000)*(1.00000+pow(STATES[5]/CONSTANTS[41], 3.00000))+ pow(CONSTANTS[42], 3.00000)*STATES[13]*(1.00000+STATES[13]/CONSTANTS[39])+ CONSTANTS[40]*pow(STATES[5], 3.00000)+ pow(STATES[5], 3.00000)*CONSTANTS[34]+ pow(CONSTANTS[18], 3.00000)*STATES[13];
ALGEBRAIC[82] = ( CONSTANTS[95]*CONSTANTS[45]*ALGEBRAIC[73]*(ALGEBRAIC[76] - ALGEBRAIC[78]))/( ALGEBRAIC[80]*(1.00000+ CONSTANTS[43]*exp( (CONSTANTS[44] - 1.00000)*STATES[0]*CONSTANTS[94])));
ALGEBRAIC[102] = ALGEBRAIC[98]+ALGEBRAIC[100]+ 3.00000*ALGEBRAIC[82]+ 3.00000*ALGEBRAIC[38]+ALGEBRAIC[70];
ALGEBRAIC[60] = ( CONSTANTS[35]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( STATES[12]*exp( 2.00000*STATES[0]*CONSTANTS[94]) - CONSTANTS[34]))/(exp( 2.00000*STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[65] =  CONSTANTS[9]*ALGEBRAIC[60]*STATES[14]*STATES[15]*STATES[16]*(1.00000 - STATES[17]);
ALGEBRAIC[83] = ( CONSTANTS[8]*CONSTANTS[47]*pow(STATES[12], 1.60000))/(pow(CONSTANTS[46], 1.60000)+pow(STATES[12], 1.60000));
ALGEBRAIC[109] =  (1.00000/( 2.00000*CONSTANTS[94]))*log(CONSTANTS[34]/STATES[12]);
ALGEBRAIC[110] =  CONSTANTS[8]*CONSTANTS[48]*(STATES[0] - ALGEBRAIC[109]);
ALGEBRAIC[111] = (ALGEBRAIC[65]+ALGEBRAIC[110]+ALGEBRAIC[83]) -  2.00000*ALGEBRAIC[81];
ALGEBRAIC[90] = RATES[31]+RATES[33];
ALGEBRAIC[61] = ( CONSTANTS[35]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( STATES[13]*exp( 2.00000*STATES[0]*CONSTANTS[94]) - CONSTANTS[34]))/(exp( 2.00000*STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[66] =  CONSTANTS[96]*ALGEBRAIC[61]*STATES[14]*STATES[15]*STATES[16]*(1.00000 - STATES[18]);
ALGEBRAIC[85] = ( CONSTANTS[95]*CONSTANTS[47]*pow(STATES[13], 1.60000))/(pow(CONSTANTS[46], 1.60000)+pow(STATES[13], 1.60000));
ALGEBRAIC[112] =  (1.00000/( 2.00000*CONSTANTS[94]))*log(CONSTANTS[34]/STATES[13]);
ALGEBRAIC[113] =  CONSTANTS[95]*CONSTANTS[48]*(STATES[0] - ALGEBRAIC[112]);
ALGEBRAIC[114] = (ALGEBRAIC[66]+ALGEBRAIC[113]+ALGEBRAIC[85]) -  2.00000*ALGEBRAIC[82];
ALGEBRAIC[91] = RATES[32]+RATES[34];
ALGEBRAIC[43] = ALGEBRAIC[31]+ALGEBRAIC[38];
ALGEBRAIC[44] = 1.00000/(1.00000+exp((STATES[0]+74.0000)/24.0000));
ALGEBRAIC[45] =  CONSTANTS[23]* pow((CONSTANTS[20]/5.40000), 1.0 / 2)*STATES[6]*ALGEBRAIC[44]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[104] =  (1.00000/CONSTANTS[94])*log((CONSTANTS[20]+ CONSTANTS[93]*CONSTANTS[18])/(CONSTANTS[33]+ CONSTANTS[93]*STATES[35]));
ALGEBRAIC[105] =  CONSTANTS[8]*CONSTANTS[24]*pow(STATES[7], 2.00000)*(STATES[0] - ALGEBRAIC[104]);
ALGEBRAIC[106] =  CONSTANTS[95]*CONSTANTS[25]*pow(STATES[7], 2.00000)*(STATES[0] - ALGEBRAIC[104]);
ALGEBRAIC[107] = ALGEBRAIC[105]+ALGEBRAIC[106];
ALGEBRAIC[46] = 1.00000/(1.00000+exp(7.48800 - STATES[0]/5.98000));
ALGEBRAIC[47] =  CONSTANTS[26]*ALGEBRAIC[46]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[48] =  CONSTANTS[27]*STATES[8]*STATES[9]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[49] =  CONSTANTS[28]*STATES[10]*STATES[11]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[50] = ALGEBRAIC[48]+ALGEBRAIC[49];
ALGEBRAIC[51] = 4.09380/(1.00000+exp( 0.121650*((STATES[0] - CONSTANTS[100]) - 49.9344)));
ALGEBRAIC[52] = ( 15.7197*exp( 0.0673900*((STATES[0] - CONSTANTS[100]) - 3.25710))+exp( 0.0617500*((STATES[0] - CONSTANTS[100]) - 594.310)))/(1.00000+exp( - 0.162850*((STATES[0] - CONSTANTS[100])+14.2067)));
ALGEBRAIC[53] = ALGEBRAIC[51]/(ALGEBRAIC[51]+ALGEBRAIC[52]);
ALGEBRAIC[54] =  CONSTANTS[29]* pow((CONSTANTS[20]/5.40000), 1.0 / 2)*ALGEBRAIC[53]*(STATES[0] - CONSTANTS[100]);
ALGEBRAIC[62] = ( CONSTANTS[37]*STATES[0]*CONSTANTS[2]*CONSTANTS[94]*( CONSTANTS[33]*exp( STATES[0]*CONSTANTS[94]) - CONSTANTS[20]))/(exp( STATES[0]*CONSTANTS[94]) - 1.00000);
ALGEBRAIC[68] =  ALGEBRAIC[62]*STATES[14]*STATES[15]*STATES[16]*( CONSTANTS[9]*(1.00000 - STATES[17])+ CONSTANTS[96]*(1.00000 - STATES[18]));
ALGEBRAIC[108] = ((ALGEBRAIC[50]+ALGEBRAIC[45]+ALGEBRAIC[107]+ALGEBRAIC[54]) -  2.00000*ALGEBRAIC[43])+ALGEBRAIC[68]+ALGEBRAIC[47];
ALGEBRAIC[103] = ALGEBRAIC[96]+ALGEBRAIC[102];
ALGEBRAIC[55] =  (( CONSTANTS[8]*CONSTANTS[30])/(1.00000+CONSTANTS[31]/STATES[12]))*(STATES[0] - CONSTANTS[101]);
ALGEBRAIC[56] =  (( CONSTANTS[95]*CONSTANTS[30])/(1.00000+CONSTANTS[31]/STATES[13]))*(STATES[0] - CONSTANTS[101]);
ALGEBRAIC[57] = ALGEBRAIC[55]+ALGEBRAIC[56];
ALGEBRAIC[58] =  CONSTANTS[32]*(STATES[0] - CONSTANTS[101]);
ALGEBRAIC[59] = ALGEBRAIC[57]+ALGEBRAIC[58];
ALGEBRAIC[116] = ALGEBRAIC[111]+ALGEBRAIC[114];
ALGEBRAIC[117] = ALGEBRAIC[103]+ALGEBRAIC[59]+ALGEBRAIC[116]+ALGEBRAIC[108];
ALGEBRAIC[10] = ((VOI - CONSTANTS[4]) -  floor((VOI - CONSTANTS[4])/CONSTANTS[6])*CONSTANTS[6]<=CONSTANTS[7] ? CONSTANTS[5] : 0.00000);
ALGEBRAIC[67] = ALGEBRAIC[65]+ALGEBRAIC[66];
ALGEBRAIC[72] = ALGEBRAIC[69]+ALGEBRAIC[70];
ALGEBRAIC[74] = ALGEBRAIC[67]+ALGEBRAIC[68]+ALGEBRAIC[72];
ALGEBRAIC[84] = ALGEBRAIC[81]+ALGEBRAIC[82];
ALGEBRAIC[87] = ALGEBRAIC[83]+ALGEBRAIC[85];
ALGEBRAIC[99] = ALGEBRAIC[94]+ALGEBRAIC[98];
ALGEBRAIC[101] = ALGEBRAIC[95]+ALGEBRAIC[100];
ALGEBRAIC[115] = ALGEBRAIC[110]+ALGEBRAIC[113];
}