Results 1 to 7 of 7
Like Tree3Likes
  • 1 Post By pbrockway2
  • 1 Post By JosAH
  • 1 Post By Fubarable

Thread: Check this question

  1. #1
    bestlita is offline Member
    Join Date
    Jul 2011
    Posts
    6
    Rep Power
    0

    Post Check this question

    Question

    write a program to compute tan (a+b)

    and tan (a-b) IN java
    Last edited by bestlita; 07-02-2011 at 03:09 AM.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    Hi bestlita, welcome to the forum.

    As I guess you realise this isn't a homework service! So, what code have you written? If you have compiler messages that you can't understand, post them along with the code. If your program runs but it doesn't give the answer you expect, say what does happen (runtime exception or weird answer) as well as what you were expecting to happen.
    bestlita likes this.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,457
    Blog Entries
    7
    Rep Power
    20

    Default

    Also note that tan(a+b) == (tan(a)+tan(b))/(1-tan(a)*tan(b)); substututinh -b for b and realizing that tan(-x) == -tan(x); otherwise I have no idea what your question is all about ...

    kind regards,

    Jos
    bestlita likes this.
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by bestlita View Post
    Question

    write a program to compute tan (a+b)

    and tan (a-b) IN java
    Done! Now what?
    sunde887 likes this.

  5. #5
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,457
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by Fubarable View Post
    Done! Now what?
    Now give teh codez to the op asap; it's urgent no doubt.

    kind regards,

    Jos ;-)
    cenosillicaphobia: the fear for an empty beer glass

  6. #6
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    Quote Originally Posted by JosAH View Post
    Now give teh codez to the op asap; it's urgent no doubt.

    kind regards,

    Jos ;-)
    I believe you mean

    URGENT!!!!!!!!!!!!!!!!!! NEED ASAP!!!!!!!!!!


    @op: as stated previously, show your attempt and people will be very helpful.

    If you post code, use code tags
    [code]
    YOUR CODE HERE
    [/code]

  7. #7
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,457
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by sunde887 View Post
    I believe you mean

    URGENT!!!!!!!!!!!!!!!!!! NEED ASAP!!!!!!!!!!
    I wonder where the folks have gone who make up excuses: they're kicked out of the house or their dog ate the assignment or their entire family is lethally ill or their teacher ain't worth a penny or they're their own professor or they can't give the code because it's a millitary secret or anything ;-) What has become of their imagination? That begging is just boring ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Can someone check this over?
    By Phyxed in forum New To Java
    Replies: 2
    Last Post: 03-29-2011, 09:07 AM
  2. Question about check button
    By arsenal4ever_11 in forum NetBeans
    Replies: 5
    Last Post: 05-29-2010, 08:44 PM
  3. question on how to check values before storing
    By SMHouston in forum New To Java
    Replies: 19
    Last Post: 09-21-2009, 10:54 PM
  4. pls check it
    By aRTx in forum New To Java
    Replies: 0
    Last Post: 03-24-2009, 02:35 PM
  5. Check box tag
    By elizaabru in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 08-26-2008, 02:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •