Basic HTML version of Foils prepared
17 Nov 97
Foil 19 The java.lang.Math class
From
Java Tutorial, July 1, 1996 CEWES Tutorial, CPS606, JSU Class CSC499 --
July 22-25 1997, Fall 97
.
by
Nancy J. McCracken,Geoffrey C. Fox, Tom Scavo
This class provides standard mathematical functions, using types int, long, float and double.
It is a static class, meaning that you only use the methods and never create "Math objects".
The methods include
IEEEremainder, abs, ceil, cos, exp, floor, log, max, min, pow, random, sin, sqrt, and other trig functions.
The random number generator is a linear congruential generator, which is fast but not random enough for many scientific applications.
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Wed Apr 1 1998