Back to index

wims  3.65+svn20090927
BaseMath.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2008 Mihai Preda.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  *
00016  */
00017 
00018 package org.javia.arity;
00019 
00020 // This class is a replacement for BaseMath.java to be used on Java 1.5 and later
00021 class BaseMath {
00022     public static final double atan(double x) {
00023         return Math.atan(x);
00024     }
00025     
00026     public static final double asin(double x) {
00027         return Math.asin(x);
00028     }
00029 
00030     public static final double acos(double x) {
00031         return Math.acos(x);
00032     }
00033 
00034     public static final double exp(double x) {
00035         return Math.exp(x);
00036     }
00037 
00038     public static final double log(double x) {
00039         return Math.log(x);
00040     }
00041 
00042     public static final double sinh(double x) {
00043         return Math.sinh(x);
00044     }
00045 
00046     public static final double cosh(double x) {
00047         return Math.cosh(x);
00048     }
00049 
00050     public static final double tanh(double x) {
00051         return Math.tanh(x);
00052     }
00053 
00054     public static final double cbrt(double x) {
00055         return Math.cbrt(x);
00056     }
00057          
00058     public static final double pow(double x, double y) {
00059         return Math.pow(x, y);
00060     }
00061 
00062     public static final double log10(double x) {
00063         return Math.log10(x);
00064     }
00065 }