Presentation Topic
Arithmetic Expression
DEFINITION OF ARITHMETIC EXPRESSION:
Arithmetic Expression is a expression having ope
-rators and operands. Also Arithmetic Expression
involves constants and operations.
Arithmetic Expression or Polish Notation is of 3
Types :-
1. Prefix
2. Infix
3. Postfix
• Infix: When the operator is placed between its 2
operands, the expression is in Infix form.
Example: a+b
• Prefix: When the operator is placed before its 2
operands, the expression is in Prefix form.
Example: +ab
• Postfix: When the operator is placed after its 2
operand's, the expression is in Postfix form.
Example: ab+
Advantages:
• Easier to evaluate an expression
• Less overhead of brackets
• Fast and easy to calculate
• Easy to work with and use in further analysis
Disadvantage:
• Sensitive to extreme values
• Not suitable for time series type of data
• Works only when all values are equally important
Arithmetic Expression

Arithmetic Expression

  • 1.
  • 2.
    DEFINITION OF ARITHMETICEXPRESSION: Arithmetic Expression is a expression having ope -rators and operands. Also Arithmetic Expression involves constants and operations. Arithmetic Expression or Polish Notation is of 3 Types :- 1. Prefix 2. Infix 3. Postfix
  • 3.
    • Infix: Whenthe operator is placed between its 2 operands, the expression is in Infix form. Example: a+b • Prefix: When the operator is placed before its 2 operands, the expression is in Prefix form. Example: +ab • Postfix: When the operator is placed after its 2 operand's, the expression is in Postfix form. Example: ab+
  • 5.
    Advantages: • Easier toevaluate an expression • Less overhead of brackets • Fast and easy to calculate • Easy to work with and use in further analysis Disadvantage: • Sensitive to extreme values • Not suitable for time series type of data • Works only when all values are equally important