java.lang
Class Math

java.lang.Object
  extended by java.lang.Math


public final class Math
extends Object

Math utility methods, as specified by the standard Java API.

Compliance: CLDC: 1.1 complete

Compliance: J2SE: 1.4 incomplete


Field Summary
static double E
           
static double PI
           
 
Method Summary
static double abs(double a)
           
static float abs(float a)
           
static int abs(int a)
           
static long abs(long a)
           
static double acos(double a)
           
static double asin(double a)
           
static double atan(double a)
           
static double atan2(double a, double b)
           
static double ceil(double a)
           
static double cos(double a)
           
static double exp(double a)
           
static double floor(double a)
           
static double IEEEremainder(double f1, double f2)
           
static double log(double a)
           
static double max(double a, double b)
           
static float max(float a, float b)
           
static int max(int a, int b)
           
static long max(long a, long b)
           
static double min(double a, double b)
           
static float min(float a, float b)
           
static int min(int a, int b)
           
static long min(long a, long b)
           
static double pow(double a, double b)
           
static double random()
           
static double rint(double a)
           
static long round(double d)
           
static int round(float f)
           
static double sin(double a)
           
static double sqrt(double a)
           
static double tan(double a)
           
static double toDegrees(double angrad)
           
static double toRadians(double angdeg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

E

public static final double E
See Also:
Constant Field Values

PI

public static final double PI
See Also:
Constant Field Values
Method Detail

abs

public static int abs(int a)

abs

public static long abs(long a)

max

public static int max(int a,
                      int b)

max

public static long max(long a,
                       long b)

min

public static int min(int a,
                      int b)

min

public static long min(long a,
                       long b)

abs

public static float abs(float a)

abs

public static double abs(double a)

max

public static float max(float a,
                        float b)

max

public static double max(double a,
                         double b)

min

public static float min(float a,
                        float b)

min

public static double min(double a,
                         double b)

round

public static long round(double d)

round

public static int round(float f)

sin

public static double sin(double a)

cos

public static double cos(double a)

tan

public static double tan(double a)

asin

public static double asin(double a)

acos

public static double acos(double a)

atan

public static double atan(double a)

exp

public static double exp(double a)

log

public static double log(double a)

sqrt

public static double sqrt(double a)

IEEEremainder

public static double IEEEremainder(double f1,
                                   double f2)

ceil

public static double ceil(double a)

floor

public static double floor(double a)

rint

public static double rint(double a)

atan2

public static double atan2(double a,
                           double b)

pow

public static double pow(double a,
                         double b)

random

public static double random()

toRadians

public static double toRadians(double angdeg)

toDegrees

public static double toDegrees(double angrad)