<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Weihai said<div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">df1b2variables for random effect model, any variable defined in parameter_section by default use </span><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">df1b2variables. </span><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; "><br></span></font><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">for non random effect, any variable in parameter_section refer to prevariable. So I don't think regular user will have a chance to use both of them at the same time in admb. </span></div></div></blockquote><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><span class="Apple-style-span" style="font-size: 12px; "><div><br></div></span></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On 11 Jul 2011, at 2:45 PM, Steve Martell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Mollie you could check other functions in the source code that return df1b2variable and see if you can mix df1b2variable and prevariable.  My recollections is that you would have to have both df1b2variable in your example below.<br>S<br>On 2011-07-11, at 10:48 AM, Mollie Brooks wrote:<br><br><blockquote type="cite">There seems to be no operator defined for dividing a df1b2variable by a prevariable. Should I create a new df1b2variable and set it equal to the prevariable denominator? <br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Will this operator eventially get defined? Should I add it as a feature request?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">thanks,<br></blockquote><blockquote type="cite">Mollie<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Details...<br></blockquote><blockquote type="cite">This is the function I'm trying to write:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">df1b2variable Michaelis_Menten1(const double& x,  const df1b2variable& a,  const prevariable& b)<br></blockquote><blockquote type="cite">{<br></blockquote><blockquote type="cite">   RETURN_ARRAYS_INCREMENT();<span class="Apple-tab-span" style="white-space:pre">      </span><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">       </span>df1b2variable y;<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">       </span>y=a*x/(b+x);<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">      </span>RETURN_ARRAYS_DECREMENT();<span class="Apple-tab-span" style="white-space:pre">  </span><br></blockquote><blockquote type="cite">   return (y);<br></blockquote><blockquote type="cite">}<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I try to use it, I get the following error<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">In function 'df1b2variable Michaelis_Menten1(const double&, const df1b2variable&, const prevariable&)':<br></blockquote><blockquote type="cite">./Michaelis_Menten1.cpp:62: error: no match for 'operator/' in 'operator*(const df1b2variable&, double)(x) / operator+(((const prevariable&)((const prevariable*)b)), x)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I believe the relevant candidates are:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">df1b2variable operator/(double, const df1b2variable&)<br></blockquote><blockquote type="cite">df1b2variable operator/(const df1b2variable&, double)<br></blockquote><blockquote type="cite">df1b2variable operator/(const df1b2variable&, const df1b2variable&)<br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Users mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Users@admb-project.org">Users@admb-project.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a><br></blockquote><br><br></div></blockquote></div><br></div></body></html>