Jump to content


Photo

Challenge: Roots


  • Please log in to reply
21 replies to this topic

#21 megabraker

megabraker

    I broke 10 posts and all I got was this lousy title!

  • Members
  • 11 posts
  • Country:
  • Gender:Male
  • Location:/root

Posted 17 January 2011 - 03:39 AM

print('Enter a number:');
nbr=input();
aprox=0.0001;
dif,root=0.0001*0.0001-nbr,0.0001
print nbr,'\'s root is',nbr**0.5;

#22 heisenbug

heisenbug

    Gibson Hacker

  • Members
  • 79 posts
  • Country:
  • Gender:Male

Posted 06 February 2011 - 04:32 PM

The bitwise sqrt operation.

Spoiler





BinRev is hosted by the great people at Lunarpages!