Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The realization of computer calculation

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The realization of computer calculation

2.1 computer calculation refers to mathematical calculation

(1) everything in the computer is the result of mathematical calculation.

Mathematics can describe everything in the real world. Scientists / engineers use mathematics to describe everything. In fact, the same is true of computers.

As we all know, all kinds of pictures, sounds and videos in computers exist in the form of data, and the process of computer computing is actually the process of dealing with these data, such as data.

To encode and decode, the results of various mathematical operations are needed in the process of coding and decoding. These pictures, sounds and videos can be turned into data, and the data can be restored to pictures, sounds and videos.

Recognition is attributed to all kinds of translation equipment.

Camera / camera / microphone (translation)

Picture, sound, video-- > data corresponding to picture, sound and video

Monitor / speaker

Picture, sound, video data-> picture, sound, video (recognized)

So in the computer, but in the computer, no matter how complex they are, they are described in the form of data, and the process of processing these data is mainly the process of mathematical calculation.

(2) the mathematical meta-arithmetic of computer is divided into arithmetic operation and logical operation.

2.2 arithmetic and logical operations

2.2.1 what is an arithmetic operation

It's very simple, addition / subtraction / multiplication / division, and the square, square, calculus and so on derived from these addition, subtraction, multiplication and division.

2.2.2 what is the use of arithmetic operations

For example, when dealing with video data, the computer pair will involve the arithmetic operations of addition, subtraction, multiplication, division and so on.

2.2.3 in a computer, all complex arithmetic operations are derived from addition

(1) complex operations such as square, square, calculus and so on are extended to addition, subtraction, multiplication and division.

(2) multiplication is a fast addition. Multiplication actually finds out the fast calculation method of addition after the law of addition, such as 3-3-9, which means that the addition of three 3 equals 9.

(3) the same division is a fast calculation method of subtraction after finding out the law of subtraction. For example, 9-3-3, which means 9-3 minus 3 times, can be reduced.

(4) subtraction is also an addition, for example, 1-1 is equivalent to 1 + (- 1).

So in the end, you will find that in fact, all kinds of complex data operations eventually become addition operations in the computer, so the most basic operation for the computer is addition operations.

2.2.3 arithmetic operation unit

(1) in the computer CPU, the function unit that specializes in realizing arithmetic operation is the arithmetic operation unit.

(2) from the above introduction, for the computer, only one adder is needed to realize all kinds of arithmetic operations, such as subtraction, multiplication, division, square and so on.

2.3 logical operation

2.3.1 what is a logical operation

Quite simply, all non-related operations are logical operations, and students who have studied digital circuits should be very familiar with logical operations.

2.3.2 what is the use of logical operations

In the real world, we often need to make all kinds of choices, and computers also need to make choices. for example, the computer chooses the most video data to process by judging whether a certain condition is true or not.

For example:

If condition An is true & condition B is true

{

Decode A video data and output display

}

Otherwise

{

Decode B video data and output display

}

1) to judge whether a condition is true or not is to judge whether a condition is true or false (true, not false). This is a logical operation.

2) there are three basic set operations: and / or / no, and other more complex logical operations, such as what is or not, and so on, are derived from these three.

2.3.3 logical operation unit

(1) in computer CPU, the functional unit that specializes in logic operation is the arithmetic operation unit.

CPU arithmetic unit = arithmetic operation unit + logic operation unit +.

(2) in fact, the logic operation is also realized by the adder, that is to say, the adder can realize both algorithm operation and logic operation.

2.4 Summary

1) No matter how complex programs the computer executes, the most important thing is to perform arithmetic and logical operations on the data.

2) it shows that the temperature / light / pressure of the world can be translated into data, and the data in the computer can be identified by programming video, sound, action, etc., which is thanks to various input and output translation equipment.

Translation and translation

External phenomena (light / sound and other signals)-> data-> all kinds of wide / sound signals are recognized by people

Input device cpu (arithmetic / logic arithmetic unit) output device

The same is true of people. Eyes, nose and mouth translate the data showing the world into brainwave data, and then the brain processes it, and then translates it through data such as mouth and limbs, so that others can know what they want to say.

The same is true of people. Eyes, nose and mouth translate the data showing the world into brainwave data, and then the brain processes it, and then translates it through data such as mouth and limbs, so that others can know what they want to say.

Author: Jiajie Studio

51CTO free video address: http://edu.51cto.com/lecturer/12941022.html

Course progress consultation QQ group: 528495268

Please state the source address for reprint.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 262

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report