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
    42

    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
    42
    hi mrbruno ,
    i mean don't use sqrt()..do you know any other logic to solve...

  4. #4
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,569
    Have a look at this page which discusses different ways of calculating a square root
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    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
  •