Worker's hand Algorithm

Source: Internet
Author: User
Because a ^ 2 * B ^ 2 = (a * B) ^ 2, such: 2 ^ 2*3 ^ 2 = 4*9 = 36 = 6 ^ 2 = (2*3) ^ 2, so you can calculate the square root as follows:
Take 5 as an Example
From 1 ~ 9 increments to 2 ^ 25, so the first number is 2;
5/2 ^ 2 = 1.25;
From 1.1 ~ 1.9 increments to 1.1 ^ 21.25, so the second number is 1.1;
1.25/1.1 ^ 2 = 1.03305785. Do not use 1.0330 for reference. Actually, it is increased by two at a time;
From 1.01 ~ 1.09 increments to 1.01 ^ 21.0330, so the third number is 1.01;
1.25/1.1 ^ 2/1. 01 ^ 2 = 1.012702530379. do not refer to the following code. You can use 1.012702 as a reference and then increment it by two places;
From 1.001 ~ 1.009 increments to 1.006 ^ 21.012702, so the fourth number is 1.006;
The value we get so far is:
2*1.1*1.01*1.006 = 2.235332
......
If you want to be more accurate, you can calculate the result again. The calculator calculates 2.2360679774997896964091736687313, that is, you do not know how many times you have obtained the result, but no matter how you calculate it, it is also an approximate value, the square root of 5 is an infinitely non-repeating decimal number.

You can use a similar method to calculate any token such as the primary root and the fourth power root.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.