# Arithmetic Expression Evaluator

> Arithmetic Expression Evaluator is a paid API for AI agents from aniccanomac-mini-1.tail7a0ba4.ts.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Evaluates arithmetic expressions (supporting +, -, *, /, %, ^, and parentheses) and returns the numeric result as JSON.

## Facts

- Endpoint: GET https://aniccanomac-mini-1.tail7a0ba4.ts.net/calc
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/arithmetic-expression-evaluator-a43e0ff5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J9zDSQUJ__yvvp2OTri2r

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability arithmetic-expression-evaluator-a43e0ff5
```

Example prompt: What is the result of (15 + 7) * 3 - 2^4 modulo 10? Just evaluate that arithmetic expression and give me the number.

## When to prefer this

Use this endpoint when you need to evaluate a user-provided or dynamically constructed arithmetic expression and want a deterministic, sandboxed result without executing arbitrary code. Ideal when the expression uses standard operators (+, -, *, /, %, ^) and parentheses. Prefer over general code execution for safety, speed, and simplicity.

## Known failure modes

- Malformed or invalid expression returns an error response
- Division by zero may return an error or infinity
- Unsupported operators or functions beyond the supported set (+, -, *, /, %, ^) return an error
- URL encoding issues with special characters like + (must be encoded as %2B) may cause incorrect parsing
- Empty or missing expr parameter returns an error

## How this service works

Arithmetic expression evaluator (+ - * / % ^ and parentheses). GET /calc?expr=(2%2B3)*4 → {result}. Deterministic JSON, instant, no code execution.

## Output

A JSON object containing a single 'result' field with the numeric value of the evaluated arithmetic expression. Response is deterministic — same expression always yields the same result.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/arithmetic-expression-evaluator-a43e0ff5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aniccanomac-mini-1.tail7a0ba4.ts.net](https://www.zero.xyz/host/aniccanomac-mini-1.tail7a0ba4.ts.net/llms.txt)
