[ADMB Users] Adjusted pow function for ADMB-RE

dave fournier davef at otter-rsch.com
Tue Nov 25 09:36:30 PST 2014


This should do the job.


GLOBALS_SECTION

  #include <admodel.h>
  #include<df1b2fun.h>

   df1b2variable pow2(const double & time, const df1b2variable & T)
   {
   if(time==0) {
     return time;
     }  else {
     return pow(time,T);}
   }
   dvariable pow2(const double & time, const dvariable & T)
   {
   if(time==0) {
     return time;
     }  else {
     return pow(time,T);}
   }

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x.tpl
Type: application/applefile
Size: 2798 bytes
Desc: not available
URL: <http://lists.admb-project.org/pipermail/users/attachments/20141125/560ba031/attachment.bin>


More information about the Users mailing list