Tags: %TAGME{ tpaction="" web="Main" tag="" }% view all tags

Hands On

If Then Else, While

Consider a method to find a square root:

Finding square roots of of numbers that aren't perfect squares without a scienctific calculator

1. Estimate - first, get as close as you can by finding two perfect square roots your number is between.

2. Divide - divide your number by one of those square roots.

3. Average - take the average of the result of step 2 and the root.

4. Use the result of step 3 to repeat steps 2 and 3 until you have a number that is accurate enough for you.

Let's try to do this with Python!

Topic revision: r1 - 2020-01-28 - JimSkon
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback