<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
The tan and tanh functions have been converted to CppAD atomic
functions; see the heading 07-27 in<br>
<a class="moz-txt-link-freetext" href="http://www.coin-or.org/CppAD/Doc/whats_new_11.xml#07-27">http://www.coin-or.org/CppAD/Doc/whats_new_11.xml#07-27</a><br>
This seems to have fixed the problem.<br>
<br>
On 7/12/2011 10:37 AM, Srikrishnan Ramadurai wrote:
<blockquote
cite="mid:CALEDsf-0m3MjZFJv5UDXCT48f2TWOUhzg-j4pwaptH+U7ykA-w@mail.gmail.com"
type="cite">
<pre wrap="">Hi,
I am trying to find the jacobian for a function that has a few tanh
functions in it . I've noticed that the differentiation of tanh function
fails for some arguments.
A test example is y=tanh(c*x1)+x2
The Jacobian of y is obtained when c is small say 20, but fails with an
error when c is something like 100. This is using the driver function
Jacobian.
This is the error that I receive.
cppad-20110711 error from a known source:
y_p = f.Forward(p, x_p): has a nan in y_p for p = 0.
Error detected by false result for
false
Is there something that I need to do to make the differentiation work? Any
help is appreciated.
The sample code in c++ is attached. The system is a intel core 2 quad
machine running on 64 bit ubuntu 10.04.
Thanks.
Regards
Srikrishnan
</pre>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
CppAD mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CppAD@list.coin-or.org">CppAD@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/cppad">http://list.coin-or.org/mailman/listinfo/cppad</a>
</pre>
</blockquote>
<br>
</body>
</html>