<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ran Friedman wrote:
<blockquote cite="mid4A65C2A3.3070503@bioc.uzh.ch" type="cite">
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
Hi,<br>
  <br>
The numerical derivative for the Nth value y[N] is calculated as:<br>
der = y[N+1] - y[N-1] * 0.5 * deltaX<br>
</blockquote>
Correction:<br>
der =  (y[N+1] - y[N-1]) * 0.5 * deltaX
<blockquote cite="mid4A65C2A3.3070503@bioc.uzh.ch" type="cite">where y
is the potential deltaX is the difference between two
successive values in your input (e.g., 1 if you have a table that goes
from -180 to 180 with 361 values).<br>
  <br>
I don't think you can print the number without changing the code, but
it's not difficult to calculate. You can plot your forces and -der and
see where they deviate. <br>
  <br>
Ran.<br>
  <br>
hong bingbing wrote:
  <blockquote cite="mid877653.60202.qm@web15304.mail.cnb.yahoo.com"
 type="cite">
    <style type="text/css"><!-- DIV {margin:0px;} --></style>
    <div
 style="font-family: garamond,'new york',times,serif; font-size: 12pt;">
    <div>Hi, Ran,</div>
    <div><br>
    </div>
    <div>The potential f(x) and force -f'(x) in the table are
calculated
by myself before constructing the table. The potential can be written
in an analytical form and the force is calculated as the analytical
negative derivative of the potential at point x. There should not be so
large deviation betw. the value I supplied and the value calculated by
GROMACS. Wait. Is there something wrong in my interpretation? What's
 your method to get the force? Is there a way to see the numerical
derivative generated by GROMACS?</div>
    <div><br>
    </div>
    <div>Thanks</div>
    <div>CH</div>
    </div>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
gmx-users mailing list    <a class="moz-txt-link-abbreviated" href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.gromacs.org/mailman/listinfo/gmx-users">http://lists.gromacs.org/mailman/listinfo/gmx-users</a>
Please search the archive at <a class="moz-txt-link-freetext" href="http://www.gromacs.org/search">http://www.gromacs.org/search</a> before posting!
Please don't post (un)subscribe requests to the list. Use the 
www interface or send it to <a class="moz-txt-link-abbreviated" href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.
Can't post? Read <a class="moz-txt-link-freetext" href="http://www.gromacs.org/mailing_lists/users.php">http://www.gromacs.org/mailing_lists/users.php</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
------------------------------------------------------
Ran Friedman
Postdoctoral Fellow
Computational Structural Biology Group (A. Caflisch)
Department of Biochemistry
University of Zurich
Winterthurerstrasse 190
CH-8057 Zurich, Switzerland
Tel. +41-44-6355559
Email: <a class="moz-txt-link-abbreviated" href="mailto:r.friedman@bioc.unizh.ch">r.friedman@bioc.unizh.ch</a>
Skype: ran.friedman
------------------------------------------------------
</pre>
</body>
</html>