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 5 of 5

Thread: NEED SIN OF ANGLE

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default NEED SIN OF ANGLE

    NEW TO JAVA (2 DAYS)

    NEED TO GET SIN (TRIG) OF ANGLE

    WHAT DO I IMPORT?

    ALEADY HAVE IMPORTED THE FALLOWING;

    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.MIDlet;

    USING ME SDK 3.0
    Last edited by CLAYAROBINSON; June 2nd, 2011 at 09:30 PM.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    183
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: NEED SIN OF ANGLE

    Nothing to import (part of java.lang)...see the Math class's sin,cos,etc...methods. Note they take angle's in radians

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: NEED SIN OF ANGLE

    thanks,
    will check it out

  4. #4
    Junior Member
    Join Date
    Jun 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: NEED SIN OF ANGLE

    Still can not get it to work

    I tried these,

    double a;
    double b;
    b=33.5;
    a=sin(b);

    double b;
    b=33.5;
    double a=sin.class(b);


    Could some please provide some code to do this so that I can get the hang of it


    Thanks in advance


    Clay
    Last edited by CLAYAROBINSON; June 2nd, 2011 at 11:49 PM.

  5. #5
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,372
    Thanks
    183
    Thanked 836 Times in 779 Posts
    Blog Entries
    5

    Default Re: NEED SIN OF ANGLE

    can not get it to work
    Please define what you mean...post an SSCCE (see my signature) that demonstrates input, what you expect, and what you get with all compile time and run time errors you receive.

Similar Threads

  1. Graphic angle
    By CoffeeBeans in forum Java Theory & Questions
    Replies: 1
    Last Post: August 22nd, 2010, 12:28 PM