How Do You Calculate Square Root?

Click For Summary
SUMMARY

The discussion focuses on calculating the square root of a number using the iterative method known as the Babylonian method or Heron's method. The formula provided is x' = (a/x + x) / 2, where 'a' is the input number and 'x' is the current estimate of the square root. This method converges quickly to the actual square root through repeated iterations. The user expresses a desire to create a simple calculator on their computer utilizing this mathematical approach.

PREREQUISITES
  • Understanding of basic algebraic concepts
  • Familiarity with iterative algorithms
  • Basic programming skills for implementing the algorithm
  • Knowledge of floating-point arithmetic
NEXT STEPS
  • Research the Babylonian method for square root calculation
  • Learn about floating-point precision in programming
  • Explore programming languages suitable for implementing mathematical algorithms, such as Python or Java
  • Investigate optimization techniques for iterative algorithms
USEFUL FOR

Anyone interested in programming, particularly those developing mathematical applications or calculators, as well as students learning about algorithms and numerical methods.

w3tw1lly
Messages
20
Reaction score
0
Just bored and decided I want to make my own little calculator on my computer. What is the method for finding the square root of an input number?
 
Technology news on Phys.org
To find the sqrt of a

x'=(a/x+x)/2

iterate.

Have fun.
 
Thanks, I appreciate it. Sorry it was such a bad question:shy:.
 
Last edited:

Similar threads

  • · Replies 30 ·
2
Replies
30
Views
6K
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 13 ·
Replies
13
Views
6K
Replies
2
Views
954