# Arithmetic Expression Evaluator

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

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

## Facts

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

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-d95deeea
```

Example prompt: What is the result of (150 * 3.5) + 200 / 4 - 18 ^ 2? Just evaluate that arithmetic expression for me.

## When to prefer this

Choose this endpoint when you need fast, deterministic evaluation of arithmetic expressions without executing arbitrary code. Ideal for formula evaluation in agent workflows where you want a sandboxed, side-effect-free numeric computation. Prefer over LLM-based math when exactness and reliability matter.

## Known failure modes

- Invalid or malformed expression returns an error response
- Division by zero may return error or infinity
- Unsupported operators or functions not in the supported set cause parse failures
- URL-encoding issues with special characters (e.g. + must be %2B) can cause incorrect parsing

## 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 'result' field with the numeric value of the evaluated arithmetic expression, returned instantly and deterministically.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "expr"
     ],
     "properties": {
      "expr": {
       "type": "string",
       "description": "arithmetic expression"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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