HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 4 February 97

Foil 34 The java.lang.Math class

From Feb 3 Delivered Lecture for Course CPS616 -- Java Lecture 4 -- AWT Through I/O CPS616 spring 1997 -- Feb 3 1997. by Nancy McCracken * See also color IMAGE
Secs 30.2
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.

Page produced by wwwfoil on Sun Feb 16 1997