Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Opposites of Sine Cosine and Tangent

  1. #1
    Member
    Join Date
    Oct 2010
    Posts
    38
    Thanks
    11
    Thanked 1 Time in 1 Post

    Default Opposites of Sine Cosine and Tangent

    Alright I'm making a text based calculator. As of right now it does addition, subtraction, multiplication, division, square roots, squares, sine, cosine, and tangent. I am wondering if there is the opposite of the sine, cosine, and tangent functions, like on a calculator (the ones with the -1 next to them). I've looked though Math (Java 2 Platform SE v1.4.2), but all it has is the regular sine cosine and tangent functions. Are there opposites of these built into Java or am I out of luck?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,301
    Thanks
    181
    Thanked 824 Times in 767 Posts
    Blog Entries
    5

    Default Re: Opposites of Sine Cosine and Tangent

    The math class has the asin, acos, atan methods that perform the arc-values of the corresponding method.

  3. The Following User Says Thank You to copeg For This Useful Post:

    sp11k3t3ht3rd (January 28th, 2011)

  4. #3
    Member
    Join Date
    Oct 2010
    Posts
    38
    Thanks
    11
    Thanked 1 Time in 1 Post

    Default Re: Opposites of Sine Cosine and Tangent

    Oh, I was confused about what it meant by arc. Thanks!

Similar Threads

  1. Trouble with law of Cosine program
    By Delstateprogramer in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 26th, 2010, 06:07 PM
  2. cosine in java
    By etidd in forum Java Theory & Questions
    Replies: 4
    Last Post: January 22nd, 2010, 08:33 AM