123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
-
- /**
- * Write a description of class Core here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Core
- {
-
- /**
- * Constructor for objects of class Core
- */
- public Core()
- {
- }
-
- public static double add(double x, double y)
- {
-
- return x + y;
- }
-
- public static double subtract(double x, double y)
- {
- return x - y;
- }
-
- public static double divide(double x, double y)
- {
- return x / y;
- }
-
- public static double multiply(double x, double y)
- {
- return x * y;
- }
-
- public static double squareRoot(double x)
- {
- return Math.sqrt(x);
- }
-
- public static double exponentiation(double x, double y)
- {
- return Math.pow(x, y);
- }
-
- public static double inverse(double x)
- {
- return 1 / x;
- }
-
- public static double reverse(double x)
- {
- return -1*x;
- }
-
- }
|