[ADMB Users] Strange results for simple computation

Casper Berg cbe at aqua.dtu.dk
Thu Sep 3 08:14:13 PDT 2009


Hello,

I am experiencing some very strange behaviour in my ADMB-program (small
working example attached).
I use the version from admb-9.0.363-win32-mingw-gcc3.4.zip.

I get the following output:

 r[0] = (0.00679635 * 0.0109971 + 0.0188592 * 1)* ((2.5 - -89.3986) / 2)
= -2.65884
 r[0] = (0.00679635 * 0.0109971 + 0.0188592 * 1)* -23.4045 = -2.65884

I expected the following:

r[0] = (0.00679635 * 0.0109971 + 0.0188592 * 1)* ((2.5 - -89.3986) / 2)
= 0.8700013
r[0] = (0.00679635 * 0.0109971 + 0.0188592 * 1)* 45.9493 = 0.8700013

The result of the computation is completely wrong, both the result of
the second paranthesis (-23.4 instead of 45.9) and
even if -23.4 was correct, then the final result -2.66 is wrong (should
then be -0.44).

I hope someone can explain to me why this voodoo is happening...

best regards,
Casper Berg.

 <<ingestion.tpl>> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20090903/78f4fef1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ingestion.tpl
Type: application/octet-stream
Size: 2383 bytes
Desc: ingestion.tpl
URL: <http://lists.admb-project.org/pipermail/users/attachments/20090903/78f4fef1/attachment.obj>


More information about the Users mailing list