Find the answer to your Linux question:
Results 1 to 4 of 4
hi all, anybody tell me an algorithm for square root of a no. without using function. please give me a solution....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2012
    Posts
    43

    c code for square root of a no. without using function


    hi all,
    anybody tell me an algorithm for square root of a no. without using function.

    please give me a solution.

  2. #2
    Just Joined! mrbruno's Avatar
    Join Date
    Jan 2013
    Location
    /MilkyWay/Sol/Earth/USA/NC/Raleigh
    Posts
    66
    Quote Originally Posted by tintu1212 View Post
    hi all,
    anybody tell me an algorithm for square root of a no. without using function.

    please give me a solution.
    Why do you need this? Why can't you use the function? This sounds like a homework assignment.

  3. #3
    Just Joined!
    Join Date
    Feb 2012
    Posts
    43
    hi mrbruno ,
    i mean don't use sqrt()..do you know any other logic to solve...

  4. $spacer_open
    $spacer_close
  5. #4
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,635
    Have a look at this page which discusses different ways of calculating a square root
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

Posting Permissions

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