<DIV>XAvier, thanks for your reply.</DIV>
<DIV>&nbsp;the numberical derivative -f'(n)=dy/dx=-(y(n+1)-y(n-1))/(n+1)-(n-1).</DIV>
<DIV>so -f'(n)=-(y(n+1)-y(n-1))/2. Is it wrong?<BR><BR><BR>On Nov 9, 2010, at 7:12 AM, Z.Xiao wrote:<BR><BR>&gt; Dear all gmxers,<BR>&gt; I meet some problems when I use the tabulated bonded potential.<BR>&gt; My original function is a sum of An*cos(x)^n (n=1-8).For short here&nbsp; <BR>&gt; I replaced it by cos(x).<BR>&gt; if f(x)=cos(x),then -f'(x)=sin(x).and the numberical derivative - <BR>&gt; f'(x)=-(y(n+1)-y(n-1))/2.<BR>here you should have dy/dx, re you really doing this?<BR>&gt; but there are great discrepancy between the two -f'(x).<BR>&gt; which is right?<BR>&gt; and if mdrun with the derivative of original function I would met a&nbsp; <BR>&gt; warning:the forces deviate<BR>&gt; on average 207% from minus the numerical derivative of the&nbsp; <BR>&gt; potential.but mdrun with the the<BR>&gt; numberical derivative there is no warning.<BR>&gt;<BR>&gt;<BR>&gt; -- <BR><BR></DIV>
<DIV></DIV><PRE>&nbsp;</PRE><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>