I came to know about the accuracy issues when I executed the following following program:
public static void main(String args[]) { double table[
You have to use BigDecimal instead of double. Unfortunately, StrictMath doesn't support BigDecimal, so you will have to use another library, or your own implementation of sin/cos/tan.
double
StrictMath
BigDecimal
sin
cos
tan