Use when the user asks you to calculate, compute, evaluate, or solve a math expression or equation. Triggers on arithmetic, order of operations (PEMDAS), fractions, percentages, exponents, and multi-step math problems.
84
78%
Does it follow best practices?
Impact
94%
1.00xAverage score across 5 eval scenarios
Passed
No known issues
Evaluate math expressions correctly using PEMDAS order of operations. Show your work step by step so the user can follow along.
| Priority | Operation | Symbol(s) | Example |
|---|---|---|---|
| 1 | Parentheses | ( ) | (2 + 3) → 5 |
| 2 | Exponents | ^ or ** | 2^3 → 8 |
| 3 | Multiplication | * or × | 4 * 5 → 20 |
| 3 | Division | / or ÷ | 10 / 2 → 5 |
| 4 | Addition | + | 3 + 4 → 7 |
| 4 | Subtraction | - | 9 - 3 → 6 |
Multiplication/Division and Addition/Subtraction have equal priority — evaluate left to right when tied.
Input: 3 + 6 × (5 + 4) ÷ 3 - 7
Step-by-step:
Step 1 — Parentheses: 3 + 6 × (9) ÷ 3 - 7
Step 2 — Exponents: (none)
Step 3 — Mult/Div: 3 + 54 ÷ 3 - 7 → 3 + 18 - 7
Step 4 — Add/Sub: 21 - 7 → 14
Answer: 14+, -, *, /^ or **( ) and nested (( ))50% of 200 → 1003/4 + 1/2 → 5/4 or 1.25-5 * -3 → 15| Mistake | Correct Approach |
|---|---|
| Left-to-right without PEMDAS | Always resolve higher-priority ops first |
2 + 3 * 4 = 20 | 3 * 4 = 12 first → 2 + 12 = 14 |
| Ignoring negatives inside parens | -(3 + 2) = -5, not -3 + 2 = -1 |
| Division before higher-priority parens | Parens always first |