<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Strange results for simple computation</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am experiencing some very strange behaviour in my ADMB-program (small working example attached).</FONT>

<BR><FONT SIZE=2 FACE="Arial">I use the version from admb-9.0.363-win32-mingw-gcc3.4.zip.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I get the following output:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial"> r[0] = (0.00679635 * 0.0109971 + 0.0188592 * 1)* ((2.5 - -89.3986) / 2) = -2.65884</FONT>

<BR><FONT SIZE=2 FACE="Arial"> r[0] = (0.00679635 * 0.0109971 + 0.0188592 * 1)* -23.4045 = -2.65884</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I expected the following:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">r[0] = (0.00679635 * 0.0109971 + 0.0188592 * 1)* ((2.5 - -89.3986) / 2) = 0.8700013</FONT>

<BR><FONT SIZE=2 FACE="Arial">r[0] = (0.00679635 * 0.0109971 + 0.0188592 * 1)* 45.9493 = 0.8700013</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">The result of the computation is completely wrong, both the result of the second paranthesis (-23.4 instead of 45.9) and</FONT></P>

<P><FONT SIZE=2 FACE="Arial">even if -23.4 was correct, then the final result -2.66 is wrong (should then be -0.44).</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I hope someone can explain to me why this voodoo is happening...</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">best regards,</FONT>

<BR><FONT SIZE=2 FACE="Arial">Casper Berg.</FONT>
</P>

<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> <<ingestion.tpl>> </FONT>
</P>

</BODY>
</HTML>