HELP! * GREY=local LOCAL HTML version of Foils prepared July 10 1996
Foil 122 The java.lang.Math class
From Basic Lectures on Java Language Applets Graphics Networking Trip to China and Icase Tutorial -- July 12-28 and June 10-13 96. byGeoffrey C. Fox * See also color IMAGE
This class provides the standard mathematical functions, using types int, long, float and double as appropriate.
It is a static class, meaning that you only use the methods, never creating objects from this class.
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.