logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    cloudiiiday
    6d

    6/20 Prefix/Infix/Postfix notation

    in ACSL Contest Prep

    Today, we went over infix, prefix, postfix notation, and how to convert them.


    Homework



    Class Notes

    • Regular math equations include operations and operands

    • operands are numbers and variables

    • operations are the actions performed on operands

    • +, -, *, /

    • Infix notation is what we normally use to do math

    • the operation is written between the operands

    • order of operations (PEMDAS): parenthesis, exponents, multiplication, division, addition, subtraction

    • Prefix notation and postfix notation are better for computers

    • In prefix notation, the operation is written before the operands

    • ex: 2+2 would be +2 2

    • In postfix notation, the operation is written after the operands

    • ex: 2+2 would be 2 2+

    • Why use prefix and postfix notation?

    • With prefix and postfix, order of operation does not matter and you’ll get the same result no matter what

    • This is much easier for computers to work with

    • To convert from infix to prefix/postfix:

    1. Follow the order of operations and fully parenthesize the expression

    2. Convert the sections into prefix/postfix based on the order you would evaluate them


    0 comments
    0
    0 comments

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2020 Legion of Learners