|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#2
|
||||
|
||||
|
Re: Math.atan2 ?
Look in the package com.sun.squawk.util.MathUtils for extra math functions.
static double acos(double a) Returns the arc cosine of an angle, in the range of 0 through pi. static double asin(double a) Returns the arc sine of an angle, in the range of -pi/2 through pi/2. static double atan(double a) Returns the arc tangent of an angle, in the range of -pi/2 through pi/2. static double atan2(double y, double x) Converts rectangular coordinates (x, y) to polar (r, theta). static double exp(double a) Returns Euler's number e raised to the power of a double value. static double expm1(double a) Returns ex -1. static double IEEEremainder(double x, double p) Computes the remainder operation on two arguments as prescribed by the IEEE 754 standard. static double log(double a) Returns the natural logarithm (base e) of a double value. static double log1p(double a) Returns the natural logarithm of the sum of the argument and 1. static double pow(double x, double y) Returns the value of the first argument raised to the power of the second argument. static double rint(double a) Returns the double value that is closest in value to the argument and is equal to a mathematical integer. static long round(double a) Returns the closest long to the argument. static int round(float a) Returns the closest int to the argument. static double scalbn(double x, int n) performs x*2^n by exponent manipulation (By language specification rules we aren't allowed to add non Java ME methods to the java.* package). |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tetra Math | ZZII 527 | General Forum | 34 | 22-01-2005 14:13 |
| A math haiku | mtrawls | Chit-Chat | 0 | 11-03-2004 20:22 |
| math.h library | mightywombat | Programming | 24 | 17-01-2004 13:10 |
| Math | Hermione692 | Chit-Chat | 15 | 21-02-2003 10:47 |
| Math Help!!! | Leon Machado IV | Chit-Chat | 7 | 16-11-2001 19:38 |