Skip to content

Order of exponentiation operation #1

@BouRHooD

Description

@BouRHooD

Source: https://ru.frwiki.wiki/wiki/Ordre_des_op%C3%A9rations
In mathematics, the order of operations or order of operations determines the order in which calculations are to be performed in a complex expression.

Priority rules:
1) calculations in parentheses or square brackets take precedence over calculations outside. The horizontal fraction or root column acts like a parenthesis;
2) exponentiation takes precedence over multiplication, division, addition, and subtraction;
3) multiplication and division take precedence over addition and subtraction;
4) in brackets, multiply and divide from left to right. The same is true for addition and subtraction.

Math Examples:

  1. 3,14*(X/1000/2)^2=0,212(X=520) <--- Incorrect answer = 0,667
  2. (X/1000/2)^2*3,14=0,212(X=520) <--- Correct answer = 0,212
  3. 3,14*(X/1000/2)^(2-2)=3,14(X=520) <--- Incorrect answer = 1
  4. 3,14*(X/1000/2)^(2+2)=0.014 <--- Incorrect answer = 0,444
  5. 3,14*(X/1000/2)^(2^2-2)=0,212(X=520) <--- Incorrect answer = 0,667

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions