
Function: Z_CHEM_MON_TRI
************************
  Description: De-nature Monomer/Trimer 
  Parameters: a0 a1 a2 a3 a4 a5 a6 RT 

  Notes:
    Pierre Lavigne's Chemical Denaturation of Monomer/Trimer.
    A model to fit the chemical denaturation of a trimer assuming the following scheme:
      T---3M---3U

  C-code:
    b = exp((-a[4] + a[5] * x) / RT);
    c = b / (3.0 * a[6] * a[6]);
    d = 0.5 * c;
    e = sqrt(c * c * (0.25 + 0.03704 * c));
    g = d + e;
    h = d - e;
    w = pow(g, 0.3333333) - pow(fabs(h), 0.3333333);
    f = exp((0.0 - a[0] + a[1] * x) / RT);
    answer = (1.0 - w) * a[2] + (1.0 - f / (1.0 + f)) * a[3];

  Future Notes:
    Here was the un-verified c-code for the trimer case:
    b = exp((-a[4] + a[5] * x) / RT);
    c = b / (3.0 * a[6] * a[6]);
    d = 0.5 * c;
    e = sqrt(c * c * (0.25 + 0.03704 * c));
    g = d + e;
    h = d - e;
    w = pow(g, 0.3333333) - pow(fabs(h), 0.3333333);
    answer = (1.0 - w) * (a[0] - a[1] * x) + w * (a[2] - a[3] * x);
