Rational simplify

rational-simplify · version 1.0.0 · Numbers & math · free, no key needed

Reduce a numerator/denominator pair to lowest terms with the sign normalized onto the numerator.

Use when you need to: rational simplify · simplify fraction · reduce fraction to lowest terms.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "numerator": "-8",
  "denominator": "-12"
}

Response:

{
  "result": {
    "numerator": "2",
    "denominator": "3"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "rational-simplify",
  "version": "1.0.0",
  "input": {
    "numerator": "-8",
    "denominator": "-12"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/rational-simplify/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"numerator":"-8","denominator":"-12"}'

The machine-readable contract is at /v1/tools/rational-simplify/versions/1.0.0.

CLI

node cli.mjs run rational-simplify 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.