CtrlK
BlogDocsLog inGet started
Tessl Logo

leo-laptop/calculate

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

1.00x
Quality

78%

Does it follow best practices?

Impact

94%

1.00x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-4/

Code Review: Math Expression Evaluator

Problem Description

A junior developer on your team has written some documentation examples showing how a simple expression evaluator should behave. Before the documentation goes live, you've been asked to audit it — specifically to check whether the listed expected outputs are correct and to provide corrected answers wherever the documentation is wrong.

The developer seems uncertain about how expressions with sequences of the same type of operation should be handled, and several examples may have errors. Your job is to provide a clear, authoritative worked solution for each expression so the documentation can be corrected.

Expressions to Audit

For each expression below, work through the calculation and produce the correct answer. Write your solutions to audit_report.md.

  1. 20 / 4 * 2 — developer claims the answer is 2.5
  2. 18 - 5 + 3 — developer claims the answer is 10
  3. 100 / 5 / 4 — developer claims the answer is 80
  4. 7 * 2 / 4 * 3 — developer claims the answer is 10.5

For each, state whether the developer's claimed answer is correct or incorrect, show the full working, and give the correct answer.

Output Specification

Write your audit to audit_report.md. For each expression, include the full worked solution and a verdict on whether the developer's answer was right or wrong.

evals

SKILL.md

tile.json