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 35 entries in the algebraic variable array.
   There are a total of 9 entries in each of the rate and state variable arrays.
   There are a total of 49 entries in the constant variable array.
 */
/*
 * VOI is time in component environment (second).
 * CONSTANTS[44] is E_Na in component reversal_potentials (millivolt).
 * ALGEBRAIC[24] is E_Ca in component reversal_potentials (millivolt).
 * CONSTANTS[45] is E_K in component reversal_potentials (millivolt).
 * CONSTANTS[46] is E_Cl in component reversal_potentials (millivolt).
 * CONSTANTS[0] is R in component model_parameters (millijoule_per_mole_kelvin).
 * CONSTANTS[1] is T in component model_parameters (kelvin).
 * CONSTANTS[2] is F in component model_parameters (coulomb_per_mole).
 * CONSTANTS[3] is Nai in component model_parameters (millimolar).
 * CONSTANTS[4] is Nao in component model_parameters (millimolar).
 * ALGEBRAIC[22] is Cai in component model_parameters (millimolar).
 * CONSTANTS[5] is Cao in component model_parameters (millimolar).
 * CONSTANTS[6] is Ki in component model_parameters (millimolar).
 * CONSTANTS[7] is Ko in component model_parameters (millimolar).
 * CONSTANTS[8] is Cli in component model_parameters (millimolar).
 * CONSTANTS[9] is Clo in component model_parameters (millimolar).
 * ALGEBRAIC[0] is i_Kdr in component delayed_rectifier_K_current (nanoA).
 * CONSTANTS[10] is g_Kdr in component delayed_rectifier_K_current (microS).
 * CONSTANTS[11] is gamma_KSS in component delayed_rectifier_K_current (dimensionless).
 * STATES[0] is V in component membrane (millivolt).
 * STATES[1] is xa in component delayed_rectifier_K_current_xa_gate (dimensionless).
 * STATES[2] is xi1 in component delayed_rectifier_K_current_xi1_gate (dimensionless).
 * STATES[3] is xi2 in component delayed_rectifier_K_current_xi2_gate (dimensionless).
 * ALGEBRAIC[1] is xa_infinity in component delayed_rectifier_K_current_xa_gate (dimensionless).
 * ALGEBRAIC[8] is tau_xa in component delayed_rectifier_K_current_xa_gate (second).
 * ALGEBRAIC[2] is xi1_infinity in component delayed_rectifier_K_current_xi1_gate (dimensionless).
 * CONSTANTS[12] is tau_xi1 in component delayed_rectifier_K_current_xi1_gate (second).
 * ALGEBRAIC[3] is xi2_infinity in component delayed_rectifier_K_current_xi2_gate (dimensionless).
 * CONSTANTS[13] is tau_xi2 in component delayed_rectifier_K_current_xi2_gate (second).
 * ALGEBRAIC[26] is i_CaL in component L_type_Ca_current (nanoA).
 * CONSTANTS[14] is P_CaL in component L_type_Ca_current (nanoA_per_millimolar).
 * CONSTANTS[15] is V_surf in component L_type_Ca_current (millivolt).
 * ALGEBRAIC[7] is ICaL_perm1 in component L_type_Ca_current (dimensionless).
 * ALGEBRAIC[25] is ICaL_perm2 in component L_type_Ca_current (millimolar).
 * STATES[4] is d in component L_type_Ca_current_d_gate (dimensionless).
 * STATES[5] is f in component L_type_Ca_current_f_gate (dimensionless).
 * ALGEBRAIC[4] is alpha_d in component L_type_Ca_current_d_gate (per_second).
 * ALGEBRAIC[9] is beta_d in component L_type_Ca_current_d_gate (per_second).
 * CONSTANTS[16] is tau_f in component L_type_Ca_current_f_gate (second).
 * ALGEBRAIC[5] is f_infinity in component L_type_Ca_current_f_gate (dimensionless).
 * ALGEBRAIC[11] is i_KCa in component Ca_activated_K_current (nanoA).
 * CONSTANTS[17] is g_KCa in component Ca_activated_K_current (microS).
 * STATES[6] is xCa1 in component Ca_activated_K_current_xCa1_gate (dimensionless).
 * STATES[7] is B in component Ca_activated_K_current_B_gate (dimensionless).
 * ALGEBRAIC[23] is xCa1_infinity in component Ca_activated_K_current_xCa1_gate (dimensionless).
 * CONSTANTS[18] is tau_xCa1 in component Ca_activated_K_current_xCa1_gate (second).
 * ALGEBRAIC[13] is K2 in component Ca_activated_K_current_xCa1_gate (millimolar).
 * ALGEBRAIC[12] is K4 in component Ca_activated_K_current_xCa1_gate (millimolar).
 * CONSTANTS[19] is alpha in component Ca_activated_K_current_xCa1_gate (per_second).
 * CONSTANTS[20] is beta in component Ca_activated_K_current_xCa1_gate (per_second).
 * ALGEBRAIC[14] is K1 in component Ca_activated_K_current_B_gate (per_millimolar_per_second).
 * ALGEBRAIC[15] is K_1 in component Ca_activated_K_current_B_gate (per_second).
 * ALGEBRAIC[27] is i_ClCa in component Ca_activated_Cl_current (nanoA).
 * CONSTANTS[21] is g_Cl in component Ca_activated_Cl_current (microS).
 * CONSTANTS[22] is CaCT in component Ca_activated_Cl_current (millimolar).
 * CONSTANTS[23] is h in component Ca_activated_Cl_current (dimensionless).
 * ALGEBRAIC[32] is i_cationic in component nonspecific_cationic_current (nanoA).
 * ALGEBRAIC[29] is i_nsNa in component nonspecific_cationic_current (nanoA).
 * ALGEBRAIC[30] is i_nsK in component nonspecific_cationic_current (nanoA).
 * ALGEBRAIC[31] is i_nsCa in component nonspecific_cationic_current (nanoA).
 * CONSTANTS[24] is P_nsCa in component nonspecific_cationic_current (nanoA_per_millimolar_mole_per_C).
 * ALGEBRAIC[28] is alpha_Ca in component nonspecific_cationic_current (dimensionless).
 * CONSTANTS[25] is Km_nsCa in component nonspecific_cationic_current (millimolar).
 * STATES[8] is ns in component nonspecific_cationic_current_ns_gate (dimensionless).
 * ALGEBRAIC[10] is tau_ns in component nonspecific_cationic_current_ns_gate (second).
 * ALGEBRAIC[6] is ns_infinity in component nonspecific_cationic_current_ns_gate (dimensionless).
 * ALGEBRAIC[33] is i_pCa in component Ca_pump_current (nanoA).
 * CONSTANTS[26] is i_pCamax in component Ca_pump_current (nanoA).
 * CONSTANTS[27] is Kmp_Ca in component Ca_pump_current (millimolar).
 * CONSTANTS[47] is i_NaK in component Na_K_pump_current (nanoA).
 * CONSTANTS[28] is i_NaKmax in component Na_K_pump_current (nanoA).
 * CONSTANTS[29] is Km_Na in component Na_K_pump_current (millimolar).
 * CONSTANTS[30] is Km_K in component Na_K_pump_current (millimolar).
 * ALGEBRAIC[34] is i_bCa in component Ca_background_current (nanoA).
 * CONSTANTS[31] is g_bCa in component Ca_background_current (microS).
 * ALGEBRAIC[16] is i_bK in component K_background_current (nanoA).
 * CONSTANTS[32] is g_bK in component K_background_current (microS).
 * ALGEBRAIC[17] is i_bNa in component Na_background_current (nanoA).
 * CONSTANTS[33] is g_bNa in component Na_background_current (microS).
 * CONSTANTS[34] is cap in component membrane (microF).
 * ALGEBRAIC[19] is upeak in component model_parameters (millimolar).
 * ALGEBRAIC[18] is up in component model_parameters (millimolar).
 * ALGEBRAIC[20] is peak in component model_parameters (millimolar).
 * ALGEBRAIC[21] is plat in component model_parameters (millimolar).
 * CONSTANTS[35] is A in component model_parameters (millimolar).
 * CONSTANTS[36] is B in component model_parameters (millimolar).
 * CONSTANTS[37] is C in component model_parameters (millimolar).
 * CONSTANTS[48] is x0 in component model_parameters (second).
 * CONSTANTS[38] is x1 in component model_parameters (second).
 * CONSTANTS[39] is x2 in component model_parameters (second).
 * CONSTANTS[40] is ds in component model_parameters (second).
 * CONSTANTS[41] is p in component model_parameters (second).
 * CONSTANTS[42] is n in component model_parameters (second).
 * CONSTANTS[43] is t36 in component model_parameters (second).
 * RATES[1] is d/dt xa in component delayed_rectifier_K_current_xa_gate (dimensionless).
 * RATES[2] is d/dt xi1 in component delayed_rectifier_K_current_xi1_gate (dimensionless).
 * RATES[3] is d/dt xi2 in component delayed_rectifier_K_current_xi2_gate (dimensionless).
 * RATES[4] is d/dt d in component L_type_Ca_current_d_gate (dimensionless).
 * RATES[5] is d/dt f in component L_type_Ca_current_f_gate (dimensionless).
 * RATES[6] is d/dt xCa1 in component Ca_activated_K_current_xCa1_gate (dimensionless).
 * RATES[7] is d/dt B in component Ca_activated_K_current_B_gate (dimensionless).
 * RATES[8] is d/dt ns in component nonspecific_cationic_current_ns_gate (dimensionless).
 * RATES[0] is d/dt V in component membrane (millivolt).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 8314.472;
CONSTANTS[1] = 310;
CONSTANTS[2] = 96485.3415;
CONSTANTS[3] = 12;
CONSTANTS[4] = 130;
CONSTANTS[5] = 2;
CONSTANTS[6] = 150;
CONSTANTS[7] = 5;
CONSTANTS[8] = 55;
CONSTANTS[9] = 140;
CONSTANTS[10] = 0.035;
CONSTANTS[11] = 0.15;
STATES[0] = -60;
STATES[1] = 0.001;
STATES[2] = 0;
STATES[3] = 0;
CONSTANTS[12] = 0.25;
CONSTANTS[13] = 1.98;
CONSTANTS[14] = 0.003;
CONSTANTS[15] = 150;
STATES[4] = 0;
STATES[5] = 1;
CONSTANTS[16] = 0.0173;
CONSTANTS[17] = 2.45;
STATES[6] = 1;
STATES[7] = 0.001;
CONSTANTS[18] = 1;
CONSTANTS[19] = 280;
CONSTANTS[20] = 480;
CONSTANTS[21] = 0.01;
CONSTANTS[22] = 0.0005;
CONSTANTS[23] = 3;
CONSTANTS[24] = 0.000000175;
CONSTANTS[25] = 0.0012;
STATES[8] = 1;
CONSTANTS[26] = 1.15;
CONSTANTS[27] = 0.05;
CONSTANTS[28] = 0.7;
CONSTANTS[29] = 40;
CONSTANTS[30] = 1;
CONSTANTS[31] = 1.194e-5;
CONSTANTS[32] = 0.008729;
CONSTANTS[33] = 0.003263;
CONSTANTS[34] = 0.00002;
CONSTANTS[35] = 0.0008;
CONSTANTS[36] = 0.00008;
CONSTANTS[37] = 0.00012;
CONSTANTS[38] = 15;
CONSTANTS[39] = 0.8;
CONSTANTS[40] = 30;
CONSTANTS[41] = 0.4;
CONSTANTS[42] = 0.2;
CONSTANTS[43] = 1.5;
CONSTANTS[44] =  (( CONSTANTS[0]*CONSTANTS[1])/CONSTANTS[2])*log(CONSTANTS[4]/CONSTANTS[3]);
CONSTANTS[45] =  (( CONSTANTS[0]*CONSTANTS[1])/CONSTANTS[2])*log(CONSTANTS[7]/CONSTANTS[6]);
CONSTANTS[46] =  (( CONSTANTS[0]*CONSTANTS[1])/CONSTANTS[2])*log(CONSTANTS[8]/CONSTANTS[9]);
CONSTANTS[47] = ( (( CONSTANTS[28]*CONSTANTS[7])/(CONSTANTS[7]+CONSTANTS[30]))*CONSTANTS[3])/(CONSTANTS[3]+CONSTANTS[29]);
CONSTANTS[48] = CONSTANTS[38]+CONSTANTS[39];
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[2] = 1.00000/(1.00000+exp((STATES[0]+4.30000)/7.50000));
RATES[2] = (ALGEBRAIC[2] - STATES[2])/CONSTANTS[12];
ALGEBRAIC[3] = 1.00000/(1.00000+exp((STATES[0]+4.30000)/7.50000));
RATES[3] = (ALGEBRAIC[3] - STATES[3])/CONSTANTS[13];
ALGEBRAIC[5] = 1.00000/(1.00000+exp((23.0000+STATES[0])/6.60000));
RATES[5] = (ALGEBRAIC[5] - STATES[5])/CONSTANTS[16];
ALGEBRAIC[1] = 1.00000/(1.00000+exp((5.50000 - STATES[0])/6.00000));
ALGEBRAIC[8] = 0.00326200 -  3.55200e-05*STATES[0];
RATES[1] = (ALGEBRAIC[1] - STATES[1])/ALGEBRAIC[8];
ALGEBRAIC[4] = ( 30.0000*(STATES[0]+18.0000))/(1.00000 - exp( - 0.250000*(STATES[0]+18.0000)));
ALGEBRAIC[9] = ( 12.0000*(STATES[0]+18.0000))/(exp( 0.100000*(STATES[0]+18.0000)) - 1.00000);
RATES[4] = ALGEBRAIC[4] -  (ALGEBRAIC[4]+ALGEBRAIC[9])*STATES[4];
ALGEBRAIC[10] = 0.200250 -  0.000898750*STATES[0];
ALGEBRAIC[6] = 1.00000/(1.00000+exp((STATES[0] - 69.8000)/- 11.9000));
RATES[8] = (ALGEBRAIC[6] - STATES[8])/ALGEBRAIC[10];
ALGEBRAIC[18] = (VOI<CONSTANTS[38] ? 0.00000 : ( (VOI - CONSTANTS[38])*CONSTANTS[35])/CONSTANTS[39]);
ALGEBRAIC[19] = (VOI<CONSTANTS[38]+CONSTANTS[39] ? ALGEBRAIC[18] : 0.00000);
ALGEBRAIC[20] = (VOI<CONSTANTS[48] ? 0.00000 :  CONSTANTS[35]*exp(- (VOI - CONSTANTS[48])/CONSTANTS[43]));
ALGEBRAIC[21] = CONSTANTS[36]/(1.00000+exp((VOI - (CONSTANTS[38]+CONSTANTS[41]+CONSTANTS[40]))/CONSTANTS[42])) - CONSTANTS[36]/(1.00000+exp((VOI - (CONSTANTS[38]+CONSTANTS[41]))/CONSTANTS[42]));
ALGEBRAIC[22] = CONSTANTS[37]+ALGEBRAIC[19]+ALGEBRAIC[20]+ALGEBRAIC[21];
ALGEBRAIC[14] =  0.850000*exp( 0.0400000*STATES[0]);
ALGEBRAIC[15] =  0.240000*exp( - 0.0120000*STATES[0]);
RATES[7] = (ALGEBRAIC[22]>=0.100000 ?  ALGEBRAIC[14]*ALGEBRAIC[22]*STATES[6] -  ALGEBRAIC[15]*STATES[7] : 1.00000);
ALGEBRAIC[13] =  0.000275000*exp(( - 1.51000*STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1]));
ALGEBRAIC[12] =  1.25000e-05*exp(( - 1.99000*STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1]));
ALGEBRAIC[23] = (pow(ALGEBRAIC[22], 2.00000)+ ALGEBRAIC[12]*ALGEBRAIC[22])/(pow(ALGEBRAIC[22], 2.00000)+ ALGEBRAIC[12]*ALGEBRAIC[22]*(1.00000+CONSTANTS[19]/CONSTANTS[20])+( ALGEBRAIC[12]*ALGEBRAIC[13]*CONSTANTS[19])/CONSTANTS[20]);
RATES[6] = (ALGEBRAIC[23] - STATES[6])/CONSTANTS[18];
ALGEBRAIC[0] =  CONSTANTS[10]*(CONSTANTS[11]+ (STATES[2]+STATES[3])*(1.00000 - CONSTANTS[11]))*pow(STATES[1], 2.00000)*(STATES[0] - CONSTANTS[45]);
ALGEBRAIC[7] = ( (STATES[0] - CONSTANTS[15])*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1]*(1.00000 - exp(( - (STATES[0] - CONSTANTS[15])*2.00000*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1]))));
ALGEBRAIC[25] =  ALGEBRAIC[7]*( ALGEBRAIC[22]*exp(CONSTANTS[15]/(( 0.500000*CONSTANTS[0]*CONSTANTS[1])/CONSTANTS[2])) -  CONSTANTS[5]*exp(- (STATES[0] - CONSTANTS[15])/(( 0.500000*CONSTANTS[0]*CONSTANTS[1])/CONSTANTS[2])));
ALGEBRAIC[26] =  4.00000*CONSTANTS[14]*STATES[4]*STATES[5]*ALGEBRAIC[25];
ALGEBRAIC[11] =  CONSTANTS[17]*STATES[6]*STATES[7]*(STATES[0] - CONSTANTS[45]);
ALGEBRAIC[27] = ( CONSTANTS[21]*(STATES[0] - CONSTANTS[46])*1.00000)/(1.00000+pow(CONSTANTS[22]/ALGEBRAIC[22], CONSTANTS[23]));
ALGEBRAIC[28] = 1.00000/(1.00000+pow(CONSTANTS[25]/ALGEBRAIC[22], 3.00000));
ALGEBRAIC[29] = ( (( STATES[8]*ALGEBRAIC[28]*CONSTANTS[24]*STATES[0]*pow(CONSTANTS[2], 2.00000))/( CONSTANTS[0]*CONSTANTS[1]))*( 0.750000*CONSTANTS[3]*exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) -  0.750000*CONSTANTS[4]))/(exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) - 1.00000);
ALGEBRAIC[30] = ( (( STATES[8]*ALGEBRAIC[28]*CONSTANTS[24]*STATES[0]*pow(CONSTANTS[2], 2.00000))/( CONSTANTS[0]*CONSTANTS[1]))*( 0.750000*CONSTANTS[6]*exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) -  0.750000*CONSTANTS[7]))/(exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) - 1.00000);
ALGEBRAIC[31] = ( (( STATES[8]*ALGEBRAIC[28]*CONSTANTS[24]*4.00000*STATES[0]*pow(CONSTANTS[2], 2.00000))/( CONSTANTS[0]*CONSTANTS[1]))*( 1.50000*ALGEBRAIC[22]*exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) -  1.50000*CONSTANTS[5]))/(exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) - 1.00000);
ALGEBRAIC[32] = ALGEBRAIC[29]+ALGEBRAIC[30]+ALGEBRAIC[31];
ALGEBRAIC[33] = ( CONSTANTS[26]*ALGEBRAIC[22])/(CONSTANTS[27]+ALGEBRAIC[22]);
ALGEBRAIC[24] =  (( CONSTANTS[0]*CONSTANTS[1])/( 2.00000*CONSTANTS[2]))*log(CONSTANTS[5]/ALGEBRAIC[22]);
ALGEBRAIC[34] =  CONSTANTS[31]*(STATES[0] - ALGEBRAIC[24]);
ALGEBRAIC[16] =  CONSTANTS[32]*(STATES[0] - CONSTANTS[45]);
ALGEBRAIC[17] =  CONSTANTS[33]*(STATES[0] - CONSTANTS[44]);
RATES[0] =  (- 1.00000/CONSTANTS[34])*(ALGEBRAIC[26]+ALGEBRAIC[0]+ALGEBRAIC[11]+ALGEBRAIC[27]+ALGEBRAIC[32]+CONSTANTS[47]+ALGEBRAIC[33]+ALGEBRAIC[34]+ALGEBRAIC[16]+ALGEBRAIC[17]);
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[2] = 1.00000/(1.00000+exp((STATES[0]+4.30000)/7.50000));
ALGEBRAIC[3] = 1.00000/(1.00000+exp((STATES[0]+4.30000)/7.50000));
ALGEBRAIC[5] = 1.00000/(1.00000+exp((23.0000+STATES[0])/6.60000));
ALGEBRAIC[1] = 1.00000/(1.00000+exp((5.50000 - STATES[0])/6.00000));
ALGEBRAIC[8] = 0.00326200 -  3.55200e-05*STATES[0];
ALGEBRAIC[4] = ( 30.0000*(STATES[0]+18.0000))/(1.00000 - exp( - 0.250000*(STATES[0]+18.0000)));
ALGEBRAIC[9] = ( 12.0000*(STATES[0]+18.0000))/(exp( 0.100000*(STATES[0]+18.0000)) - 1.00000);
ALGEBRAIC[10] = 0.200250 -  0.000898750*STATES[0];
ALGEBRAIC[6] = 1.00000/(1.00000+exp((STATES[0] - 69.8000)/- 11.9000));
ALGEBRAIC[18] = (VOI<CONSTANTS[38] ? 0.00000 : ( (VOI - CONSTANTS[38])*CONSTANTS[35])/CONSTANTS[39]);
ALGEBRAIC[19] = (VOI<CONSTANTS[38]+CONSTANTS[39] ? ALGEBRAIC[18] : 0.00000);
ALGEBRAIC[20] = (VOI<CONSTANTS[48] ? 0.00000 :  CONSTANTS[35]*exp(- (VOI - CONSTANTS[48])/CONSTANTS[43]));
ALGEBRAIC[21] = CONSTANTS[36]/(1.00000+exp((VOI - (CONSTANTS[38]+CONSTANTS[41]+CONSTANTS[40]))/CONSTANTS[42])) - CONSTANTS[36]/(1.00000+exp((VOI - (CONSTANTS[38]+CONSTANTS[41]))/CONSTANTS[42]));
ALGEBRAIC[22] = CONSTANTS[37]+ALGEBRAIC[19]+ALGEBRAIC[20]+ALGEBRAIC[21];
ALGEBRAIC[14] =  0.850000*exp( 0.0400000*STATES[0]);
ALGEBRAIC[15] =  0.240000*exp( - 0.0120000*STATES[0]);
ALGEBRAIC[13] =  0.000275000*exp(( - 1.51000*STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1]));
ALGEBRAIC[12] =  1.25000e-05*exp(( - 1.99000*STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1]));
ALGEBRAIC[23] = (pow(ALGEBRAIC[22], 2.00000)+ ALGEBRAIC[12]*ALGEBRAIC[22])/(pow(ALGEBRAIC[22], 2.00000)+ ALGEBRAIC[12]*ALGEBRAIC[22]*(1.00000+CONSTANTS[19]/CONSTANTS[20])+( ALGEBRAIC[12]*ALGEBRAIC[13]*CONSTANTS[19])/CONSTANTS[20]);
ALGEBRAIC[0] =  CONSTANTS[10]*(CONSTANTS[11]+ (STATES[2]+STATES[3])*(1.00000 - CONSTANTS[11]))*pow(STATES[1], 2.00000)*(STATES[0] - CONSTANTS[45]);
ALGEBRAIC[7] = ( (STATES[0] - CONSTANTS[15])*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1]*(1.00000 - exp(( - (STATES[0] - CONSTANTS[15])*2.00000*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1]))));
ALGEBRAIC[25] =  ALGEBRAIC[7]*( ALGEBRAIC[22]*exp(CONSTANTS[15]/(( 0.500000*CONSTANTS[0]*CONSTANTS[1])/CONSTANTS[2])) -  CONSTANTS[5]*exp(- (STATES[0] - CONSTANTS[15])/(( 0.500000*CONSTANTS[0]*CONSTANTS[1])/CONSTANTS[2])));
ALGEBRAIC[26] =  4.00000*CONSTANTS[14]*STATES[4]*STATES[5]*ALGEBRAIC[25];
ALGEBRAIC[11] =  CONSTANTS[17]*STATES[6]*STATES[7]*(STATES[0] - CONSTANTS[45]);
ALGEBRAIC[27] = ( CONSTANTS[21]*(STATES[0] - CONSTANTS[46])*1.00000)/(1.00000+pow(CONSTANTS[22]/ALGEBRAIC[22], CONSTANTS[23]));
ALGEBRAIC[28] = 1.00000/(1.00000+pow(CONSTANTS[25]/ALGEBRAIC[22], 3.00000));
ALGEBRAIC[29] = ( (( STATES[8]*ALGEBRAIC[28]*CONSTANTS[24]*STATES[0]*pow(CONSTANTS[2], 2.00000))/( CONSTANTS[0]*CONSTANTS[1]))*( 0.750000*CONSTANTS[3]*exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) -  0.750000*CONSTANTS[4]))/(exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) - 1.00000);
ALGEBRAIC[30] = ( (( STATES[8]*ALGEBRAIC[28]*CONSTANTS[24]*STATES[0]*pow(CONSTANTS[2], 2.00000))/( CONSTANTS[0]*CONSTANTS[1]))*( 0.750000*CONSTANTS[6]*exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) -  0.750000*CONSTANTS[7]))/(exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) - 1.00000);
ALGEBRAIC[31] = ( (( STATES[8]*ALGEBRAIC[28]*CONSTANTS[24]*4.00000*STATES[0]*pow(CONSTANTS[2], 2.00000))/( CONSTANTS[0]*CONSTANTS[1]))*( 1.50000*ALGEBRAIC[22]*exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) -  1.50000*CONSTANTS[5]))/(exp(( STATES[0]*CONSTANTS[2])/( CONSTANTS[0]*CONSTANTS[1])) - 1.00000);
ALGEBRAIC[32] = ALGEBRAIC[29]+ALGEBRAIC[30]+ALGEBRAIC[31];
ALGEBRAIC[33] = ( CONSTANTS[26]*ALGEBRAIC[22])/(CONSTANTS[27]+ALGEBRAIC[22]);
ALGEBRAIC[24] =  (( CONSTANTS[0]*CONSTANTS[1])/( 2.00000*CONSTANTS[2]))*log(CONSTANTS[5]/ALGEBRAIC[22]);
ALGEBRAIC[34] =  CONSTANTS[31]*(STATES[0] - ALGEBRAIC[24]);
ALGEBRAIC[16] =  CONSTANTS[32]*(STATES[0] - CONSTANTS[45]);
ALGEBRAIC[17] =  CONSTANTS[33]*(STATES[0] - CONSTANTS[44]);
}