What is the algorithm? What are the rules of operation?

Updated on educate 2024-07-19
6 answers
  1. Anonymous users2024-02-13

    In an equation with parentheses, you should first count the inside ( small brackets ) , and then ( middle brackets.

    The inside is counted as the outside of the parentheses at the end.

    1. Four mixed operation sequences: when the same level is calculated, it is calculated from left to right; In two-level operations, multiplication and division are calculated first, and addition and subtraction are calculated later.

    When there are parentheses, count the inside of the brackets first, and then the outside of the brackets; When there are multiple layers of parentheses, count the ones in the parentheses first, then the inside of the middle brackets, and then the curly braces.

    The inside is counted as the outside of the parentheses at the end.

    2. Multiplication is a simple operation of addition, and division is a simple operation of subtraction. Subtraction and addition are inverses of each other, and division and multiplication are inverses of each other.

    Several additions are added together, and the position of the addition can be arbitrarily exchanged; Or add a few additions and then add them to the other additions, and their sum does not change.

    The sum of two numbers subtracted from a number is equal to the subtraction of each additional number in the sum from this number.

  2. Anonymous users2024-02-12

    and the rules of operation:AND operation is a basic logical operation method in the computer, the symbol is represented as "&" according to the binary bit of the AND operation, the operation rule is, 0&0=0;0&1=0;1&0=0;1&1=1, that is, both digits are "1" at the same time, and the result is "1", otherwise it is "0".

    Negative numbers participate in bitwise and arithmetic in the form of complements.

    Brief introduction.

    or(logical or), if one or more operands are true, the logic or operator returns a boolean value true; The result is false only if all operands are false.

    not, logical negation is the reciprocal of the original value. XOR (Logical Alternative Or), if A and B are different, the Exclusive OR result is 1. If A and B are the same, the Exclusive Or result is 0.

  3. Anonymous users2024-02-11

    and the rules of operation:

    AND operation is a basic logical operation method in the computer, the symbol is represented as "&" according to the binary bit of the AND operation, the operation rule is, 0&0=0;0&1=0;1&0=0;1&1=1, that is, both digits are "1" at the same time, and the result is "1", otherwise it is "0". Negative numbers participate in bitwise and arithmetic in the form of complements.

    Meaningful formulas that connect relational expressions or logical quantities with logical operators are called logical expressions. The value of a logical expression is a logical value, i.e., "true" or "false".

    When the C language compilation system gives the result of logical operations, the number 1 represents "true" and the number 0 represents "false", but when judging whether a quantity is "true", 0 means "false" and non-0 means "true".

    and the usage of operations

    The two data participating in the operation are operated by binary bits for the "AND" operation.

    Rule: 0&0=0; 0&1=0;1&0=0;1&1=1;

    That is, if both digits are "1" at the same time, the result is "1", otherwise it is 0

    For example: 3&5 i.e. 0000 0011 & 0000 0101 = 0000 0001 Therefore, 3&5 is worth 1.

    For example, if x=10101110, take the 4th digit of x, and use x & 0000 1111 = 0000 1110 to get it.

    It can also be used to take the bit of x.

    The above content refers to: Encyclopedia-AND ("and" operation).

  4. Anonymous users2024-02-10

    The algorithms include the commutative law of addition, the commutative law of multiplication, the associative law of addition, the distributive law of multiplication, etc. The commutative law of addition is one of the laws of mathematical calculation.

    Refers to the addition of two additions, the exchange of the position of the additions, and the unchanged. Commutative property is a property of binary backup operations, which means that in a representation containing more than two commutative operators, as long as the operators do not change, the order of operations will not affect the calculated value.

    The multiplicative commutative law is a law of calculation, where two numbers are multiplied together, and the position of the exchange factor, their product is constant, called the multiplicative commutative law, which is represented by letters a b = bxa. Generally, in the calculation of multiplication only formulas, the general Kainian calculation is carried out in the order from left to right, and sometimes, simple calculations can be performed by using the multiplicative commutative law.

  5. Anonymous users2024-02-09

    The rule of four operations:

    1. Calculation rules for addition and subtraction of integers:

    1) To align the same digits, add or subtract the numbers on the same counting unit.

    2) Whoever reaches the age of ten will advance to the previous one.

    2. Calculation rules of decimal addition and subtraction:

    1) To calculate decimal addition and subtraction, first align the decimal points of each number (that is, the numbers on the same digits).

    2) Then calculate according to the rules of integer addition and subtraction, and finally align the decimal point on the horizontal line in the obtained number.

    3. Calculation rules for addition and subtraction of fractions:

    1) When the denominator is the same, only the numerator is added and subtracted, and the denominator remains unchanged.

    2) When the denominator is not the same, it is necessary to divide the fraction with the same denominator first, and then add and subtract.

    Hybrid algorithms

    1) There is only addition and subtraction in the formula, then it is calculated in turn; There is only multiplication and division, which is also calculated sequentially.

    2) There are both addition and subtraction and multiplication in the equation, multiplication is calculated first, and addition and subtraction are calculated later.

    3) There are both addition and subtraction and division in the formula, first the division, then the addition and subtraction.

    4) The part that does not participate in the calculation of each step should be copied down unchanged in position and symbol to ensure that the equal sign should be equal before and after.

    5) The function of parentheses in mixed operations is to change the order of operations. The order of operations for mixed operations with parentheses: the inside of the parentheses is counted first, and then the outside of the parentheses.

  6. Anonymous users2024-02-08

    The four operations are when the first-level operation (addition and subtraction) and the second-level operation (multiplication and division) appear in a formula at the same time, their order of operation is first multiplication and division, then addition and subtraction, if there are brackets, the brackets are counted first and then the brackets are counted, and the order of operation at the same level is from left to right.

    The fourth refers to the calculation rules of addition, subtraction, multiplication, and division. The formula for a four-rule operation does not necessarily need to have four operator symbols, and generally refers to an operation in which two or more operator symbols and parentheses are combined into a single number. Addition and subtraction are inverses of each other; Multiplication and division are inverse operations; Multiplication is a simple operation of addition.

Related questions
13 answers2024-07-19

The exponents are the sameBaseDifferent algorithms: a n*b n=(a*b) n. >>>More

2 answers2024-07-19

Basic Rules (1) Serve 1Pre-Serve Rules The server should stand in the area behind the end line, between the midpoint and the putative extension of the sideline, and toss the ball with his hand in any direction in the air before serving, and hits the ball with a racket before the ball touches the ground (a player with only one hand can use a racket to throw the ball). When the racket makes contact with the ball, the ball is sent. >>>More

22 answers2024-07-19

The rule of dressing is to divide the human body into 30% and 70% according to Panax notoginseng, and wear it to show the length of the legs.

3 answers2024-07-19

Many people are more familiar with water polo rushers, but when it comes to the specific situation of water polo, we don't know much about it, especially for the rules of water polo, which leads to our can't watch the water polo game well, so what are the rules when playing water polo, let's take a look at it together. >>>More

5 answers2024-07-19

The rule of thumb, also known as the 3-sigma rule or principle, is used to quickly extrapolate normally distributed data with known means and standard deviations. >>>More