Search:

Type: Posts; User: kimchi999

Search: Search took 0.10 seconds.

  1. Replies
    12
    Views
    1,799

    Re: main calls Math.cos and myCos twice.....

    Nope, I believe my factorial is wrong but I don't know how to correct it....
  2. Replies
    12
    Views
    1,799

    Re: main calls Math.cos and myCos twice.....

    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));
  3. Replies
    12
    Views
    1,799

    Re: main calls Math.cos and myCos twice.....

    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...
  4. Replies
    12
    Views
    1,799

    Re: main calls Math.cos and myCos twice.....

    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...
  5. Replies
    12
    Views
    1,799

    Re: main calls Math.cos and myCos twice.....

    I need help!!!!! I spent the whole day working on this, that's how bad I am.
  6. Replies
    12
    Views
    1,799

    Re: main calls Math.cos and myCos twice.....

    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.
  7. Replies
    12
    Views
    1,799

    main calls Math.cos and myCos twice.....

    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!) + ......
Results 1 to 7 of 7