Results 1 to 2 of 2

Thread: Doing Math

  1. #1
    nicholas205 is offline Member
    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    0

    Default Doing Math

    how can i calculate the cube of the first number and the square root of the second number. Output the largest of the 2 calculated values. I want to do it without IF statement but with Math Methods...help me please!!

    EDIT: Moved to own thread
    Last edited by Norm; 01-28-2012 at 02:20 AM. Reason: Moved to own thread

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,602
    Rep Power
    23

    Default Re: text area help

    alculate the cube of the first number
    Use an algebraic expression
    See the Math class for the rest. It has many useful methods.

Similar Threads

  1. math and GUI
    By urbanleg in forum AWT / Swing
    Replies: 3
    Last Post: 08-06-2011, 04:05 PM
  2. I need to learn math
    By silverglade in forum New To Java
    Replies: 9
    Last Post: 05-14-2011, 09:10 AM
  3. Math.cos()
    By ravi1 in forum New To Java
    Replies: 5
    Last Post: 03-27-2011, 02:52 PM
  4. Create Math.sin without math.sin
    By vudoo in forum New To Java
    Replies: 11
    Last Post: 12-07-2010, 06:23 AM
  5. Help with java math
    By gabrielfirestorm in forum New To Java
    Replies: 6
    Last Post: 10-25-2010, 01:54 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
  •