Nope, I believe my factorial is wrong but I don't know how to correct it....
Type: Posts; User: kimchi999
Nope, I believe my factorial is wrong but I don't know how to correct it....
Correction!
System.out.println("Mycos = " +sum);
System.out.println("Math.cos =" +Math.cos(Math.PI/6.0));
System.out.println("Math.cos =" +Math.cos(Math.PI));
O.K. So, now it compiles.... but it's not right. I believe it's my equation. =_= I don't know what to do.... I can't believe I have been doing this problem for a week now.... I need a book... Please...
Thank you for your help. Now I have this and I still have a problem with the factorial.....
import java.math.BigInteger;
import java.util.Scanner;
class Cos
{
public static void...
I need help!!!!! I spent the whole day working on this, that's how bad I am.
Oh, yes thank you! I believe my formula is not correct and that's my main problem. I don't understand how to formulate all the things that is asked for in this code.
Task: a program that calls Math.cos and myCos twice, once passing Math.PI another passing Math.PI/6.0
myCos should compute and return the value of
1.0 - x^2/(2!) + x^4/(4!) - x^6/(6!) + ......