Ejemplo n.º 1
0
 public static void test3() {
   BigNum angle = new BigNum("0.0");
   BigNum maxVal = new BigNum("0.25").multiply(BigNum.PI);
   BigNum step = BigNum.PI.divide(new BigNum("12.0"), 40, BigNumRound.HALF_EVENT);
   System.out.print("\t\tInit=" + angle + "\t,MaxValue=" + maxVal + "\t,step=" + step);
   for (; angle.compareTo(maxVal) <= 0; ) {
     System.out.println(
         "\t\tsin("
             + MathBn.toDegrees(angle)
             + ")="
             + MathBn.sin(angle)); // taylorSeriesSine(angle));
     angle = angle.add(step);
   }
 }