Tried google? Topic hints: numerical math, interpolation
Tried reading the javadocs? They state that java's Math class is designed to provide the same results as a well known math library. They say that that library can be found here ftp://ftp.netlib.org/fdlibm.tar. Perhaps that might contain some pointers
> BASICALLY WHAT IM LOOKING FOR ARE SOME ALGORITHMS FOR
> infinite Taylor series.
Taylor series:
sin(x) = SUM_{n=0..inf} ((-1)^n / (2*n+1)!) * x^(2*n+1)
cos(x) = SUM_{n=0..inf} ((-1)^n / (2*n)!) * x^(2*n)
Ya something like that....for example for sin(a) or something like that:
public static double sin(double x){
double border=0.00001;
double temp=x;
double count=1;
double sum=temp;
while(border<Math.abs(temp)){
count+=2;
temp=-temp*x*x/(count*(count-1));
sum+=temp;
}
return sum;
}
Something in this lines.>