summaryrefslogtreecommitdiff
path: root/java/lang/Math.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/lang/Math.java')
-rw-r--r--java/lang/Math.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/java/lang/Math.java b/java/lang/Math.java
index aac33aa29..f1f68c483 100644
--- a/java/lang/Math.java
+++ b/java/lang/Math.java
@@ -298,7 +298,7 @@ public final class Math
* @param a the angle (in radians)
* @return sin(a)
*/
- public native static double sin(double a);
+ public static native double sin(double a);
/**
* The trigonometric function <em>cos</em>. The cosine of NaN or infinity is
@@ -307,7 +307,7 @@ public final class Math
* @param a the angle (in radians)
* @return cos(a)
*/
- public native static double cos(double a);
+ public static native double cos(double a);
/**
* The trigonometric function <em>tan</em>. The tangent of NaN or infinity
@@ -317,7 +317,7 @@ public final class Math
* @param a the angle (in radians)
* @return tan(a)
*/
- public native static double tan(double a);
+ public static native double tan(double a);
/**
* The trigonometric function <em>arcsin</em>. The range of angles returned
@@ -328,7 +328,7 @@ public final class Math
* @param a the sin to turn back into an angle
* @return arcsin(a)
*/
- public native static double asin(double a);
+ public static native double asin(double a);
/**
* The trigonometric function <em>arccos</em>. The range of angles returned
@@ -339,7 +339,7 @@ public final class Math
* @param a the cos to turn back into an angle
* @return arccos(a)
*/
- public native static double acos(double a);
+ public static native double acos(double a);
/**
* The trigonometric function <em>arcsin</em>. The range of angles returned
@@ -351,7 +351,7 @@ public final class Math
* @return arcsin(a)
* @see #atan2(double, double)
*/
- public native static double atan(double a);
+ public static native double atan(double a);
/**
* A special version of the trigonometric function <em>arctan</em>, for
@@ -400,7 +400,7 @@ public final class Math
* @return <em>theta</em> in the conversion of (x, y) to (r, theta)
* @see #atan(double)
*/
- public native static double atan2(double y, double x);
+ public static native double atan2(double y, double x);
/**
* Take <em>e</em><sup>a</sup>. The opposite of <code>log()</code>. If the
@@ -414,7 +414,7 @@ public final class Math
* @see #log(double)
* @see #pow(double, double)
*/
- public native static double exp(double a);
+ public static native double exp(double a);
/**
* Take ln(a) (the natural log). The opposite of <code>exp()</code>. If the
@@ -430,7 +430,7 @@ public final class Math
* @return the natural log of <code>a</code>
* @see #exp(double)
*/
- public native static double log(double a);
+ public static native double log(double a);
/**
* Take a square root. If the argument is NaN or negative, the result is
@@ -444,7 +444,7 @@ public final class Math
* @return the square root of the argument
* @see #pow(double, double)
*/
- public native static double sqrt(double a);
+ public static native double sqrt(double a);
/**
* Raise a number to a power. Special cases:<ul>
@@ -514,7 +514,7 @@ public final class Math
* @param b the power to raise it to
* @return a<sup>b</sup>
*/
- public native static double pow(double a, double b);
+ public static native double pow(double a, double b);
/**
* Get the IEEE 754 floating point remainder on two numbers. This is the
@@ -530,7 +530,7 @@ public final class Math
* @return the IEEE 754-defined floating point remainder of x/y
* @see #rint(double)
*/
- public native static double IEEEremainder(double x, double y);
+ public static native double IEEEremainder(double x, double y);
/**
* Take the nearest integer that is that is greater than or equal to the
@@ -541,7 +541,7 @@ public final class Math
* @param a the value to act upon
* @return the nearest integer &gt;= <code>a</code>
*/
- public native static double ceil(double a);
+ public static native double ceil(double a);
/**
* Take the nearest integer that is that is less than or equal to the
@@ -551,7 +551,7 @@ public final class Math
* @param a the value to act upon
* @return the nearest integer &lt;= <code>a</code>
*/
- public native static double floor(double a);
+ public static native double floor(double a);
/**
* Take the nearest integer to the argument. If it is exactly between
@@ -561,7 +561,7 @@ public final class Math
* @param a the value to act upon
* @return the nearest integer to <code>a</code>
*/
- public native static double rint(double a);
+ public static native double rint(double a);
/**
* Take the nearest integer to the argument. This is equivalent to