Dear Vipin, > // double f = cos(n*x)*log((cos(a) - cos(x))/(x - a));//
Is it possible that the argument of your logarithm can be zero for PI? Or that you divide by zero, if x-a becomes zero for PI? Kind regards, Klaus.
Dear Vipin, > // double f = cos(n*x)*log((cos(a) - cos(x))/(x - a));//
Is it possible that the argument of your logarithm can be zero for PI? Or that you divide by zero, if x-a becomes zero for PI? Kind regards, Klaus.