Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 1999 22:22:25 +0200 (CEST)
From:      Martin Dieringer <martin@dieringe.dialup.fu-berlin.de>
To:        freebsd-java@FreeBSD.ORG, freebsd-mobile@FreeBSD.ORG
Subject:   strange java calculation errors
Message-ID:  <Pine.BSF.4.10.9907052202440.390-100000@ThinkPad.nowhere.local>

next in thread | raw e-mail | index | archive | help


Hi,

I use the latest jdk1.1.8_ELF.V99-6-3.tar.gz with applied net-patch.
On a few-weeks-old 3.2-STABLE.
I have strange arithmetic errors.  I sometimes get NaN-s
and very big numbers (...E306) which don't appear on any other machine/os
and don't appear with the linux-jdk1.2 pre-v2. They strangest thing
is that they seem to appear more often when I just move the mouse around
(it is an awt-application). 

the things calculated are:

double denom = (.0836 * Math.pow(weight, 1.37));
double weightgain = .2849372 * meatEnergy * weight / denom;

and the crash is produced for example with following numbers:

 weight: 7.676859326020309
 denom: 1.3642934228726058
 meatEnergy: 0.029994563969828213

-->  weightgain: NaN
(which should rather be ~.04809140910465598530)

Did anybody have similar problems or has an idea what could cause
this? 
This is on a ThinkPad 600, P-II 233. Mousemovement means trackpoint (ps/2) 
OR external ps/2 mouse. And yes, they appear since I use this Thinkpad.


Thanks very much
Martin



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9907052202440.390-100000>