[ADMB Users] df1b2variable/prevariable operator

dave fournier davef at otter-rsch.com
Tue Jul 12 06:33:25 PDT 2011


This is the right way to do this I think.


double Michaelis_Menten1( double x,  const double a,  const double b)
  {
    double y;
    y=a*x/(b+x);
    return (y);
}
dvariable Michaelis_Menten1(double x,  const prevariable& a,  const 
prevariable& b)
  {
    RETURN_ARRAYS_INCREMENT();
    dvariable y;
    y=a*x/(b+x);

    RETURN_ARRAYS_DECREMENT();
    return (y);
}


df1b2variable Michaelis_Menten1(double x,  const df1b2variable& a,  
const df1b2variable& b)
  {
   df1b2variable y;
    y=a*x/(b+x);
    return (y);
}





More information about the Users mailing list