0
Can't get proper answer in tangent inverse method.
//This is my tangent inverse method public double arcTan(double x) { double total=0; for(int i=1;i<=49;i++) { total=total+(power(-1,i+1)*power(x,(2*i)-1))/(2*i)-1; } return total; } //when I call It and try to find arcTan (3) it gives me 1.7493 but in calculator the value is 1.2490. Need Help
1 Respuesta
+ 7
Could you please publish your code at the playground and link it here? The power method is missing.