[comp.sources.games.bugs] GB3_log1p_and_more

nelson@ecsvax.uncecs.edu (jim nelson) (06/03/90)

1) I can find no reference to log1p in <math.h> on BSD4.2,
SysV2.0, SysV3.1, nor Ultrix4.2.  Is it magic?

2) What is
	int i;
	i *= 0.5;
supposed to do?
My cc gets it wrong (I guess) (but at least warns me).  Gcc gets it
right (?).  (From looking at .s files).
-- 
jim nelson  nelson@ecsvax.uncecs.edu  nelson@ecsvax.bitnet

shodsdon@elrond.CalComp.COM (Steve V. Hodsdon) (06/07/90)

In article <1990Jun2.200250.14901@uncecs.edu> nelson@ecsvax.uncecs.edu (jim nelson) writes:
>1) I can find no reference to log1p in <math.h> on BSD4.2,
>SysV2.0, SysV3.1, nor Ultrix4.2.  Is it magic?
>
>-- 
>jim nelson  nelson@ecsvax.uncecs.edu  nelson@ecsvax.bitnet

from the sun man pages:

	log1p() returns log(1+x) accurately even for tiny x.

-- 
Steve Hodsdon                      |    It's me that's been dogin' your shadow
@CalComp, A Lockheed Co.           |  It's me that's been a shadowin' your dog
...!decvax.dec.com!elrond!shodsdon |                                     -10cc
-------------------------------------------------------------------------------