1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1994, 2013, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 
28 package java.lang;
29 
30 import java.util.Random;
31 
32 @SuppressWarnings({"unchecked", "deprecation", "all"})
33 public final class Math {
34 
Math()35 Math() { throw new RuntimeException("Stub!"); }
36 
sin(double a)37 public static native double sin(double a);
38 
cos(double a)39 public static native double cos(double a);
40 
tan(double a)41 public static native double tan(double a);
42 
asin(double a)43 public static native double asin(double a);
44 
acos(double a)45 public static native double acos(double a);
46 
atan(double a)47 public static native double atan(double a);
48 
toRadians(double angdeg)49 public static double toRadians(double angdeg) { throw new RuntimeException("Stub!"); }
50 
toDegrees(double angrad)51 public static double toDegrees(double angrad) { throw new RuntimeException("Stub!"); }
52 
exp(double a)53 public static native double exp(double a);
54 
log(double a)55 public static native double log(double a);
56 
log10(double a)57 public static native double log10(double a);
58 
sqrt(double a)59 public static native double sqrt(double a);
60 
cbrt(double a)61 public static native double cbrt(double a);
62 
IEEEremainder(double f1, double f2)63 public static native double IEEEremainder(double f1, double f2);
64 
ceil(double a)65 public static native double ceil(double a);
66 
floor(double a)67 public static native double floor(double a);
68 
rint(double a)69 public static native double rint(double a);
70 
atan2(double y, double x)71 public static native double atan2(double y, double x);
72 
pow(double a, double b)73 public static native double pow(double a, double b);
74 
round(float a)75 public static int round(float a) { throw new RuntimeException("Stub!"); }
76 
round(double a)77 public static long round(double a) { throw new RuntimeException("Stub!"); }
78 
random()79 public static double random() { throw new RuntimeException("Stub!"); }
80 
81 @libcore.api.CorePlatformApi
randomLongInternal()82 public static long randomLongInternal() { throw new RuntimeException("Stub!"); }
83 
addExact(int x, int y)84 public static int addExact(int x, int y) { throw new RuntimeException("Stub!"); }
85 
addExact(long x, long y)86 public static long addExact(long x, long y) { throw new RuntimeException("Stub!"); }
87 
subtractExact(int x, int y)88 public static int subtractExact(int x, int y) { throw new RuntimeException("Stub!"); }
89 
subtractExact(long x, long y)90 public static long subtractExact(long x, long y) { throw new RuntimeException("Stub!"); }
91 
multiplyExact(int x, int y)92 public static int multiplyExact(int x, int y) { throw new RuntimeException("Stub!"); }
93 
multiplyExact(long x, long y)94 public static long multiplyExact(long x, long y) { throw new RuntimeException("Stub!"); }
95 
incrementExact(int a)96 public static int incrementExact(int a) { throw new RuntimeException("Stub!"); }
97 
incrementExact(long a)98 public static long incrementExact(long a) { throw new RuntimeException("Stub!"); }
99 
decrementExact(int a)100 public static int decrementExact(int a) { throw new RuntimeException("Stub!"); }
101 
decrementExact(long a)102 public static long decrementExact(long a) { throw new RuntimeException("Stub!"); }
103 
negateExact(int a)104 public static int negateExact(int a) { throw new RuntimeException("Stub!"); }
105 
negateExact(long a)106 public static long negateExact(long a) { throw new RuntimeException("Stub!"); }
107 
toIntExact(long value)108 public static int toIntExact(long value) { throw new RuntimeException("Stub!"); }
109 
floorDiv(int x, int y)110 public static int floorDiv(int x, int y) { throw new RuntimeException("Stub!"); }
111 
floorDiv(long x, long y)112 public static long floorDiv(long x, long y) { throw new RuntimeException("Stub!"); }
113 
floorMod(int x, int y)114 public static int floorMod(int x, int y) { throw new RuntimeException("Stub!"); }
115 
floorMod(long x, long y)116 public static long floorMod(long x, long y) { throw new RuntimeException("Stub!"); }
117 
abs(int a)118 public static int abs(int a) { throw new RuntimeException("Stub!"); }
119 
abs(long a)120 public static long abs(long a) { throw new RuntimeException("Stub!"); }
121 
abs(float a)122 public static float abs(float a) { throw new RuntimeException("Stub!"); }
123 
abs(double a)124 public static double abs(double a) { throw new RuntimeException("Stub!"); }
125 
max(int a, int b)126 public static int max(int a, int b) { throw new RuntimeException("Stub!"); }
127 
max(long a, long b)128 public static long max(long a, long b) { throw new RuntimeException("Stub!"); }
129 
max(float a, float b)130 public static float max(float a, float b) { throw new RuntimeException("Stub!"); }
131 
max(double a, double b)132 public static double max(double a, double b) { throw new RuntimeException("Stub!"); }
133 
min(int a, int b)134 public static int min(int a, int b) { throw new RuntimeException("Stub!"); }
135 
min(long a, long b)136 public static long min(long a, long b) { throw new RuntimeException("Stub!"); }
137 
min(float a, float b)138 public static float min(float a, float b) { throw new RuntimeException("Stub!"); }
139 
min(double a, double b)140 public static double min(double a, double b) { throw new RuntimeException("Stub!"); }
141 
ulp(double d)142 public static double ulp(double d) { throw new RuntimeException("Stub!"); }
143 
ulp(float f)144 public static float ulp(float f) { throw new RuntimeException("Stub!"); }
145 
signum(double d)146 public static double signum(double d) { throw new RuntimeException("Stub!"); }
147 
signum(float f)148 public static float signum(float f) { throw new RuntimeException("Stub!"); }
149 
sinh(double x)150 public static native double sinh(double x);
151 
cosh(double x)152 public static native double cosh(double x);
153 
tanh(double x)154 public static native double tanh(double x);
155 
hypot(double x, double y)156 public static native double hypot(double x, double y);
157 
expm1(double x)158 public static native double expm1(double x);
159 
log1p(double x)160 public static native double log1p(double x);
161 
copySign(double magnitude, double sign)162 public static double copySign(double magnitude, double sign) { throw new RuntimeException("Stub!"); }
163 
copySign(float magnitude, float sign)164 public static float copySign(float magnitude, float sign) { throw new RuntimeException("Stub!"); }
165 
getExponent(float f)166 public static int getExponent(float f) { throw new RuntimeException("Stub!"); }
167 
getExponent(double d)168 public static int getExponent(double d) { throw new RuntimeException("Stub!"); }
169 
nextAfter(double start, double direction)170 public static double nextAfter(double start, double direction) { throw new RuntimeException("Stub!"); }
171 
nextAfter(float start, double direction)172 public static float nextAfter(float start, double direction) { throw new RuntimeException("Stub!"); }
173 
nextUp(double d)174 public static double nextUp(double d) { throw new RuntimeException("Stub!"); }
175 
nextUp(float f)176 public static float nextUp(float f) { throw new RuntimeException("Stub!"); }
177 
nextDown(double d)178 public static double nextDown(double d) { throw new RuntimeException("Stub!"); }
179 
nextDown(float f)180 public static float nextDown(float f) { throw new RuntimeException("Stub!"); }
181 
scalb(double d, int scaleFactor)182 public static double scalb(double d, int scaleFactor) { throw new RuntimeException("Stub!"); }
183 
scalb(float f, int scaleFactor)184 public static float scalb(float f, int scaleFactor) { throw new RuntimeException("Stub!"); }
185 
186 public static final double E = 2.718281828459045;
187 
188 public static final double PI = 3.141592653589793;
189 }
190 
191