Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to calculate division on computer
How to calculate division on computer
Question 1: What is the division formula on the computer?

1, Start-All Programs-Accessories-Calculator

Do you know where the score line of this calculator is? Do division and enter the first number.

3. Enter the division symbol/

4. Enter the second number.

5 is equal to =, and there is a result.

Question 2: How does the computer calculate the division, convert it into binary, shift the number to the left, get the result and return it to decimal?

Question 3: How does the computer perform operations (division, multiplication, root sign, etc. )? Computers use binary numbers.

Binary number multiplication rules:

Unsigned multiplication:

Note: Multiplying an integer by 2 shifts the original number by one bit to the left, and the last bit is supplemented by 0, for example: 10 1 (binary) *2( 10 binary) =10 unsigned division:

===========================

Signed numbers are divided into two forms: complement (complement of 1) and complement (complement of 2).

Skip here and check for yourself if you are interested.

Most of the above are integers, and floating-point numbers are generally stored in other formats, such as IEEE 754 standard (you can go to Baidu Encyclopedia).

=======================

Rooting:

I don't know about that. It doesn't seem to be the function of the bottom of the computer. There are functions written for open roots in C language, so it depends on how the functions are implemented. Newton's radical sign is introduced here, which is quite efficient for computer implementation.

Newton iteration method: such as finding the root number a (a > =0), take any positive number X_0, and iterate with the formula x _ {n+1} =1/2 * (x _ n+a/x _ n) until the accuracy meets the requirements.

Note: "_" means subscript.

C code is as follows:

if(aerr)

{

Result =0.5* (result +a/ result);

}

Printf (square root is %lf, result);

Return the result;

Question 4: How to calculate addition, subtraction, multiplication and division on the computer? All programs-accessories-calculator can be calculated when opened. Add, subtract, multiply and divide from bottom to top.

Question 5: How to type the division symbol on the computer? Right-click the rightmost box of the input method and select the mathematical symbol. There are all the symbols in it.

Question 6: How to calculate the division on the computer? Just run the calculator, and then you will know what to do.

Question 7: How does addition, subtraction, multiplication and division indicate that you are right on the computer? +-Dan */ means addition, subtraction, multiplication and division respectively, and other powers are 0, such as the cube of 2: 2 3.

Question 8: How to express division on the computer? /Just division