{
  localUrl: '../page/order_of_operations.html',
  arbitalUrl: 'https://arbital.com/p/order_of_operations',
  rawJsonUrl: '../raw/54s.json',
  likeableId: '2981',
  likeableType: 'page',
  myLikeValue: '0',
  likeCount: '2',
  dislikeCount: '0',
  likeScore: '2',
  individualLikes: [
    'EricBruylant',
    'PatrickStevens'
  ],
  pageId: 'order_of_operations',
  edit: '3',
  editSummary: '',
  prevEdit: '2',
  currentEdit: '3',
  wasPublished: 'true',
  type: 'wiki',
  title: 'Order of operations',
  clickbait: 'Conventions used for disambiguating infix notation.',
  textLength: '2625',
  alias: 'order_of_operations',
  externalUrl: '',
  sortChildrenBy: 'likes',
  hasVote: 'false',
  voteType: '',
  votesAnonymous: 'false',
  editCreatorId: 'JoeZeng',
  editCreatedAt: '2016-07-06 23:01:11',
  pageCreatorId: 'JoeZeng',
  pageCreatedAt: '2016-07-06 00:48:50',
  seeDomainId: '0',
  editDomainId: 'AlexeiAndreev',
  submitToDomainId: '0',
  isAutosave: 'false',
  isSnapshot: 'false',
  isLiveEdit: 'true',
  isMinorEdit: 'false',
  indirectTeacher: 'false',
  todoCount: '0',
  isEditorComment: 'false',
  isApprovedComment: 'true',
  isResolved: 'false',
  snapshotText: '',
  anchorContext: '',
  anchorText: '',
  anchorOffset: '0',
  mergedInto: '',
  isDeleted: 'false',
  viewCount: '42',
  text: 'The **order of operations** is a notational convention employed in arithmetical expressions to disambiguate the order in which operations should be performed.\n\nIt is also referred to PEMDAS, BEDMAS, BODMAS, or other such acronyms depending on where you live. The acronym is always 6 letters, and refers to the following things in order:\n\n1. [parentheses] (or Brackets), in order of inside-most parentheses first\n2. [exponent Exponents] (or Orders or Indices), in order of inside-most (or rightmost) exponents first\n3. [multiplication] and [division], in order from left to right\n4. [addition] and [subtraction], in order from left to right\n\n\n## Motivation\n\nThe infix notation we use to write expressions of mathematical operators is inherently ambiguous. Only in some very special examples where the expression consists of only a single [3h4 associative] operation do all possible orders of evaluation evaluate to the same thing. When considering the expression $2 - 4 + 3$, do we do the $2 - 4$ first or the $4 + 3$ first? The result is either $1$ or $-5$ depending on which you choose. When considering the expression $7 + 8 \\times 9 - 6$, which operation do we do first? The result could be anywhere from $31$ to $129$ depending on the order you do them in.\n\nTherefore, to relieve mathematicians of placing brackets around every expression, there are some standard, intuitive conventions put in place.\n\n\n## Example expressions\n\nConsider the expression $3 + 7 \\times 2^{(6 + 8)}$. We do parentheses first: $$3 + 7 \\times 2^{14}$$ Then exponents: $$3 + 7 \\times 16384$$ Then multiplication and division: $$3 + 114688$$ And finally addition and subtraction: $$114691$$\n\n\n## Notable ambiguous cases\n\nThe expression $48 \\div 2 (9 + 3)$ is a controversial ambiguity in the order of operations that results from an ambiguity in multiplication by juxtaposition — which is, the convention that numbers next to each other in brackets should be multiplied together. For example, $2(3+5)$ is equal to $2 \\times (3 + 5)$ or $16$.\n\nIf multiplication by juxtaposition is taken as a _parenthetical_ operation due to the parentheses in the operands, then the result is 2:\n\n$$\\begin{align*}\n48 \\div 2 (9 + 3) &= 48 \\div 2 (12) \\\\\n&= 48 \\div 24 \\\\\n&= 2\n\\end{align*}$$\n\nHowever, if multiplication by juxtaposition is taken as simply a regular _multiplication_ operation, the result is 288: \n\n$$\\begin{align*}\n48 \\div 2 (9 + 3) &= 48 \\div 2 \\times 12 \\\\\n&= 24 \\times 12 \\\\\n&= 288\n\\end{align*}$$\n\nThe second step is different because the 48 and 2 are operated on first, as the left most division or multiplication operation in the expression.',
  metaText: '',
  isTextLoaded: 'true',
  isSubscribedToDiscussion: 'false',
  isSubscribedToUser: 'false',
  isSubscribedAsMaintainer: 'false',
  discussionSubscriberCount: '2',
  maintainerCount: '2',
  userSubscriberCount: '0',
  lastVisit: '',
  hasDraft: 'false',
  votes: [],
  voteSummary: 'null',
  muVoteSummary: '0',
  voteScaling: '0',
  currentUserVote: '-2',
  voteCount: '0',
  lockedVoteType: '',
  maxEditEver: '0',
  redLinkCount: '0',
  lockedBy: '',
  lockedUntil: '',
  nextPageId: '',
  prevPageId: '',
  usedAsMastery: 'false',
  proposalEditNum: '0',
  permissions: {
    edit: {
      has: 'false',
      reason: 'You don't have domain permission to edit this page'
    },
    proposeEdit: {
      has: 'true',
      reason: ''
    },
    delete: {
      has: 'false',
      reason: 'You don't have domain permission to delete this page'
    },
    comment: {
      has: 'false',
      reason: 'You can't comment in this domain because you are not a member'
    },
    proposeComment: {
      has: 'true',
      reason: ''
    }
  },
  summaries: {},
  creatorIds: [
    'JoeZeng'
  ],
  childIds: [
    'order_of_rational_operations_math_0'
  ],
  parentIds: [
    'math'
  ],
  commentIds: [],
  questionIds: [],
  tagIds: [
    'start_meta_tag'
  ],
  relatedIds: [],
  markIds: [],
  explanations: [],
  learnMore: [],
  requirements: [],
  subjects: [],
  lenses: [
    {
      id: '109',
      pageId: 'order_of_operations',
      lensId: 'order_of_rational_operations_math_0',
      lensIndex: '0',
      lensName: 'Math 0',
      lensSubtitle: '',
      createdBy: '267',
      createdAt: '2016-08-01 08:17:29',
      updatedBy: '267',
      updatedAt: '2016-08-01 08:17:50'
    }
  ],
  lensParentId: '',
  pathPages: [],
  learnMoreTaughtMap: {},
  learnMoreCoveredMap: {},
  learnMoreRequiredMap: {},
  editHistory: {},
  domainSubmissions: {},
  answers: [],
  answerCount: '0',
  commentCount: '0',
  newCommentCount: '0',
  linkedMarkCount: '0',
  changeLogs: [
    {
      likeableId: '0',
      likeableType: 'changeLog',
      myLikeValue: '0',
      likeCount: '0',
      dislikeCount: '0',
      likeScore: '0',
      individualLikes: [],
      id: '17897',
      pageId: 'order_of_operations',
      userId: 'PatrickStevens',
      edit: '0',
      type: 'newChild',
      createdAt: '2016-08-01 08:17:26',
      auxPageId: 'order_of_rational_operations_math_0',
      oldSettingsValue: '',
      newSettingsValue: ''
    },
    {
      likeableId: '0',
      likeableType: 'changeLog',
      myLikeValue: '0',
      likeCount: '0',
      dislikeCount: '0',
      likeScore: '0',
      individualLikes: [],
      id: '15844',
      pageId: 'order_of_operations',
      userId: 'JoeZeng',
      edit: '3',
      type: 'newEdit',
      createdAt: '2016-07-06 23:01:11',
      auxPageId: '',
      oldSettingsValue: '',
      newSettingsValue: ''
    },
    {
      likeableId: '0',
      likeableType: 'changeLog',
      myLikeValue: '0',
      likeCount: '0',
      dislikeCount: '0',
      likeScore: '0',
      individualLikes: [],
      id: '15777',
      pageId: 'order_of_operations',
      userId: 'EricBruylant',
      edit: '0',
      type: 'newParent',
      createdAt: '2016-07-06 20:43:31',
      auxPageId: 'math',
      oldSettingsValue: '',
      newSettingsValue: ''
    },
    {
      likeableId: '0',
      likeableType: 'changeLog',
      myLikeValue: '0',
      likeCount: '0',
      dislikeCount: '0',
      likeScore: '0',
      individualLikes: [],
      id: '15720',
      pageId: 'order_of_operations',
      userId: 'JoeZeng',
      edit: '0',
      type: 'deleteTag',
      createdAt: '2016-07-06 16:40:59',
      auxPageId: 'stub_meta_tag',
      oldSettingsValue: '',
      newSettingsValue: ''
    },
    {
      likeableId: '0',
      likeableType: 'changeLog',
      myLikeValue: '0',
      likeCount: '0',
      dislikeCount: '0',
      likeScore: '0',
      individualLikes: [],
      id: '15718',
      pageId: 'order_of_operations',
      userId: 'JoeZeng',
      edit: '0',
      type: 'newTag',
      createdAt: '2016-07-06 16:40:58',
      auxPageId: 'start_meta_tag',
      oldSettingsValue: '',
      newSettingsValue: ''
    },
    {
      likeableId: '0',
      likeableType: 'changeLog',
      myLikeValue: '0',
      likeCount: '0',
      dislikeCount: '0',
      likeScore: '0',
      individualLikes: [],
      id: '15535',
      pageId: 'order_of_operations',
      userId: 'JoeZeng',
      edit: '2',
      type: 'newEdit',
      createdAt: '2016-07-06 00:49:21',
      auxPageId: '',
      oldSettingsValue: '',
      newSettingsValue: ''
    },
    {
      likeableId: '0',
      likeableType: 'changeLog',
      myLikeValue: '0',
      likeCount: '0',
      dislikeCount: '0',
      likeScore: '0',
      individualLikes: [],
      id: '15534',
      pageId: 'order_of_operations',
      userId: 'JoeZeng',
      edit: '0',
      type: 'newTag',
      createdAt: '2016-07-06 00:48:51',
      auxPageId: 'stub_meta_tag',
      oldSettingsValue: '',
      newSettingsValue: ''
    },
    {
      likeableId: '0',
      likeableType: 'changeLog',
      myLikeValue: '0',
      likeCount: '0',
      dislikeCount: '0',
      likeScore: '0',
      individualLikes: [],
      id: '15533',
      pageId: 'order_of_operations',
      userId: 'JoeZeng',
      edit: '1',
      type: 'newEdit',
      createdAt: '2016-07-06 00:48:50',
      auxPageId: '',
      oldSettingsValue: '',
      newSettingsValue: ''
    }
  ],
  feedSubmissions: [],
  searchStrings: {},
  hasChildren: 'true',
  hasParents: 'true',
  redAliases: {},
  improvementTagIds: [],
  nonMetaTagIds: [],
  todos: [],
  slowDownMap: 'null',
  speedUpMap: 'null',
  arcPageIds: 'null',
  contentRequests: {}
}