Results 1 to 3 of 3
  1. #1
    roud9 is offline Member
    Join Date
    Sep 2010
    Posts
    20
    Rep Power
    0

    Default Find the square root with a particular method

    Hi,

    I have to find the square root of a number, but not with Math.sqrt or other else.
    The methode I have to use is based on this table:

    Java Code:
    SQUARE	0	1	2	3	4	5	6	7	8	9	10	..	15	16	17	..	24	25	26	27
    ROOT  	0	1	1	1	2	2	2	2	2	3	3	..	3	4	4	..	4	5	5	5
    I have noticed the number zero is listed one time, the one three times, the two five times... 2n+1 times for all numbers.

    It's been several days that I try to find the algorithm that table, but I
    found nothing :( I therefore request your help to try to see things more clearly.

    Thanks for your help
    Last edited by Fubarable; 09-28-2010 at 12:15 AM. Reason: Moderator Edit: Code tags added

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default

    The methode I have to use is based on this table:
    How does that table show a method to use? It shows the square roots truncated to integer values.
    Do you have an alogrithm for finding the square root of a number?
    I'm not sure what that table does to solve the problem.

  3. #3
    roud9 is offline Member
    Join Date
    Sep 2010
    Posts
    20
    Rep Power
    0

    Default

    No I don't have an alogrithm it's currently what i'm searching for. The same table is on wikipedia : Racine carrée - Wikipédia
    sorry I don't find it in english i'ts in french and it's after the middle on the page.

    Thanks

Similar Threads

  1. square root and prime numbers
    By roud9 in forum New To Java
    Replies: 16
    Last Post: 09-22-2010, 04:20 PM
  2. Simple square root problem!
    By nortski in forum New To Java
    Replies: 7
    Last Post: 04-01-2009, 03:11 PM
  3. Can't find method
    By 01allenh in forum New To Java
    Replies: 1
    Last Post: 03-25-2009, 08:46 PM
  4. Creating a New Method for Square Root Loop
    By SapphireSpark in forum New To Java
    Replies: 14
    Last Post: 02-25-2009, 02:21 PM
  5. Find nth root of a number
    By perito in forum New To Java
    Replies: 1
    Last Post: 03-03-2008, 07:51 AM

Posting Permissions

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