search
HomeCommon ProblemWhat are the rules for addition, subtraction, multiplication and division?

What are the rules for addition, subtraction, multiplication and division?

Jun 16, 2020 am 09:22 AM
Addition, subtraction, multiplication and division

What are the rules for addition, subtraction, multiplication and division?

What are the rules for addition, subtraction, multiplication and division?

Addition, subtraction, multiplication and division are the four basic arithmetic operations. In the absence of parentheses, the order of operations is multiplication and division first, then addition and subtraction.

Commutative law of addition: a b=b a

Associative law of addition: a b c=a (b c)

Commutative law of multiplication: a*b=b*a

Associative law of multiplication: a*b*c=a*(b*c)

Distributive law of multiplication: (a b)*c=a*c b*c

Properties of subtraction : a-b-c=a-(b c)

Properties of division: a/b/c=a/(b*c)

Principles of computer addition, subtraction, multiplication and division

Principles of addition and subtraction: Original code, inverse code, complement code

Machine number: the actual storage of numerical values ​​in the computer; For example, [2] is [00000010], [-2] is [10000010]; its highest bit is called the sign bit, 0 represents a positive number, and 1 represents a negative number.

The true number of the machine number: the true value of the machine number, such as [2] is [0000010], [-2] is [0000010], etc.

Original code: The sign bit plus the absolute value of the real number, using the first bit to represent the sign and the remaining bits to represent the value.

Inverse code: The complement code of a positive number is itself; the complement code of a negative number is based on its original code, the sign bit remains unchanged, and the remaining bits are inverted.

Complement code: The complement code of a positive number is itself; the complement code of a negative number is based on its original code, the sign bit remains unchanged, the remaining bits are inverted, and finally 1.

Principle of multiplication: computer values ​​are expressed by 2 raised to the Nth power:

2^n0 2^n1 2^n2 2^n3 2^n4......

x*y

=(x)*(2^n0 2^n1 2^n2 2^n3 2^n4)

=(x*2^n0) (x*2^n1) (x*2^n2) (x*2^n3) (x*2^n4) ......

=(x moves left n0) (x moves left n1) (x moves left n2) (x moves left n3) (x moves left n4) ......

Principle of division: left shift operation, the sign bit does not participate in the operation.

For more related knowledge, please visit PHP Chinese website! !

The above is the detailed content of What are the rules for addition, subtraction, multiplication and division?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
ao3 quark entrance official website ao3 official website quark entranceao3 quark entrance official website ao3 official website quark entranceMay 15, 2025 pm 06:45 PM

1. Ao3 official website quark entrance☜☜☜☜☜☜Click to save. 2. Ao3 Quark entrance official website☜☜☜☜☜☜☜Click to save. 【ao3】1. AO3 (Archive of Our Own) is a huge online archive website created by fans. 2. It mainly contains fan works, covering a wide variety of media, from books and movies to TV series and games, almost everything is included. 3. AO3 has rich content and diverse types, which can meet the needs of different readers.

ao3 mirror URL quark ao3 mirror address quark entranceao3 mirror URL quark ao3 mirror address quark entranceMay 15, 2025 pm 06:42 PM

1. Ao3 mirror URL Quark☜☜☜☜☜☜☜☜ Click to enter. 2. Ao3 mirror address quark entrance ☜☜☜☜☜☜☜ Click to enter. 3. AO3 (Archives Our Own) is a non-profit fan and fan-fiction archive website launched on October 29, 2008. 4. AO3 is a website founded by fans and run by fans, dedicated to protecting the works created by fans and providing a censorship-free environment for fan novel writers.

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.