[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wierd random number behavior
From: |
Benedikt Stefansson |
Subject: |
Re: wierd random number behavior |
Date: |
Tue, 20 Apr 1999 18:10:36 +0200 |
Marcus G. Daniels wrote:
>
> >>>>> "B" == Benedikt Stefansson <address@hidden> writes:
>
> B> although it
> B> is harder to explain the overrun for randNum. However it could be a
> B> strange byproduct of the variable threshold going to infinity.
>
> Maybe... The easiest way to find out if there is a weird side effect
> is to remove the threshold computation. On some versions of Linux,
> exp is an assembly inline and so a compiler bug might screw up the FPU
> state somehow.
>
> B> On Linux I've had problems when dividing a floating point value by
> B> an integer (i.e using 4 instead of 4.0).
>
> This should work. [section 2.7 in the C reference manual]
>
> B> The "-moisture" is not proper C and should be written "-1.0*moisture".
>
> This should also work. [section 7.2 in Appendix A in the C reference manual]
>
I guess the RTFM principle also holds for C, I just learned this stuff
by doing rather than studying and hence stand corrected.
Regards,
Benedikt
--
---
Present coordinates:
Dep. of Economics, Univ. of Trento, Via Inama 1, 38100 Trento, ITALY
Office: +39 0461 882246 Mobile: +39 0347 0415721 Fax: +39 0461 882222
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- wierd random number behavior, Paul Box, 1999/04/19
- Re: wierd random number behavior, Sven N. Thommesen, 1999/04/19
- Re: wierd random number behavior, Paul Box, 1999/04/19
- Re: wierd random number behavior, Theodore C. Belding, 1999/04/20
- ANYBODY USING AMD PROCESSORS ?, Sven N. Thommesen, 1999/04/20
- Re: wierd random number behavior, Sven N. Thommesen, 1999/04/20
- Re: wierd random number behavior, Benedikt Stefansson, 1999/04/20
- Re: wierd random number behavior, Marcus G. Daniels, 1999/04/20
- Re: wierd random number behavior,
Benedikt Stefansson <=
- Re: wierd random number behavior, Tamas Papp, 1999/04/20
- Re: wierd random number behavior, Marcus G. Daniels, 1999/04/20
- Re: wierd random number behavior, Paul Box, 1999/04/21
- Re: wierd random number behavior, Theodore C. Belding, 1999/04/21
Re: wierd random number behavior, Marcus G. Daniels, 1999/04/19