WORKED CASE · SYNTHETIC TEST DATA

Check operator grouping before a longer calculation

An explicit parenthesis can change a result substantially. A small expression lets you check the syntax accepted by this evaluator.

Input and settings

2 * (3 + 4) ^ 2

Run and interpret

Enter the sample as written. The grouped sum is 7, its square is 49, and multiplying by 2 gives 98.

Expected output

98

Scope and possible misuse

This uses mathjs syntax, not JavaScript evaluation or a spreadsheet formula language. Keep expressions small; decimal results are not exact financial arithmetic.

Unexpected result? Report a minimal example