Python Forum
Finding square roots using long division.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding square roots using long division.
#9
(Feb-24-2021, 11:01 AM)Serafim Wrote: I didn't answer your last question (3):
I think normalize is the place. Add one digit to the decimals and then shorten the result. It's a messy business as the result is actually a string. Maybe consider the two last digits as a decimal number and round it of as an integer. Then replacing the two last digits in the result string by that integer.
E.g. the last two digits = '37' => 3.7 => rounded to 4 and replace '37' by '4'.

Maybe there are other ways.


Very bold answer as never got this detail printed anywhere on SO. Seems they want reader to figure it out. But came only near to this idea.
But, still (after your answer) feel to comprehend fully need code or at least elaborate algorithm.
Thanks in anticipation.
Reply


Messages In This Thread
RE: Finding square roots using long division. - by jahuja73 - Feb-24-2021, 11:37 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Zero Division Error Leo 2 1,261 Mar-25-2022, 05:56 AM
Last Post: Leo
  Division problem Eric7Giants 1 1,705 Nov-16-2019, 05:50 AM
Last Post: ndc85430
  Count how many carpets you need to fill room floor without multiplication/division Ech0ke 1 2,330 Apr-20-2019, 07:50 PM
Last Post: ichabod801
  Zero Division Error moga2003 4 3,097 Mar-07-2019, 02:15 AM
Last Post: moga2003
  Magic square! frequency 1 2,563 Dec-17-2018, 06:35 PM
Last Post: micseydel
  Square reverse sum(overloaded) shihomiyano 6 4,115 Aug-18-2018, 06:27 AM
Last Post: micseydel
  Perfect Square program forumer444 4 8,959 Sep-01-2017, 09:32 PM
Last Post: forumer444
  Magic Square Puzzle Harnick 1 4,889 Aug-09-2017, 04:51 PM
Last Post: nilamo
  Square Root on calculator MP1234593 1 7,970 Jun-06-2017, 06:58 PM
Last Post: nilamo
  List of square roots python py7 6 6,421 Apr-08-2017, 11:26 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020