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

Thread: Help me pls

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking Help me pls

    Hello! could someone give me some algorithm in computing the square root of a number without using any loops?


  2. #2
    Junior Member
    Join Date
    Aug 2014
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Help me pls

    Quote Originally Posted by javan00b1721 View Post
    Hello! could someone give me some algorithm in computing the square root of a number without using any loops?
    I'm guessing it's your homework as you're asking for specifics and theirs a built in function for square root. Show us what you've tried and we can help you from there.

  3. #3
    Junior Member
    Join Date
    Sep 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Help me pls

    yup i already use the sqrt method from the Math class. i am searching rigth now and so far all of my research has a loop in it. Im currently searching on algorithm that i can use without using loop statements. but if you could suggest me some operators that i can use it would help me alot thnk you

  4. #4
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    411
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: Help me pls

    First work out how to get the square of a number.

    I.E how would you work out the Square of the number 3?

    Once you have that, use reverse engineering to get the square root.

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

Similar Threads

  1. Help pls ...
    By KanPo in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 2nd, 2014, 12:12 PM
  2. Pls help
    By avi11 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 21st, 2013, 04:43 AM
  3. Help Pls..
    By shen_punkz21 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 28th, 2013, 11:41 AM
  4. HI PLS HELP
    By Virat Pandey in forum What's Wrong With My Code?
    Replies: 3
    Last Post: December 23rd, 2012, 05:12 AM
  5. pls.pls.pls.help with this
    By izzahmed in forum What's Wrong With My Code?
    Replies: 8
    Last Post: October 25th, 2011, 11:30 AM