Array rational min max

array-rational-min-max · version 1.0.0 · Numbers & math · free, no key needed

Return the reduced numeric minimum and maximum of an array of canonical rationals.

Use when you need to: array rational min max · minimum and maximum of rationals · min and max of an array of fractions.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "values": [
    {
      "numerator": "1",
      "denominator": "2"
    },
    {
      "numerator": "2",
      "denominator": "3"
    },
    {
      "numerator": "1",
      "denominator": "4"
    }
  ]
}

Response:

{
  "result": {
    "min": {
      "numerator": "1",
      "denominator": "4"
    },
    "max": {
      "numerator": "2",
      "denominator": "3"
    }
  }
}

How to call it

MCP

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

{
  "id": "array-rational-min-max",
  "version": "1.0.0",
  "input": {
    "values": [
      {
        "numerator": "1",
        "denominator": "2"
      },
      {
        "numerator": "2",
        "denominator": "3"
      },
      {
        "numerator": "1",
        "denominator": "4"
      }
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/array-rational-min-max/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"values":[{"numerator":"1","denominator":"2"},{"numerator":"2","denominator":"3"},{"numerator":"1","denominator":"4"}]}'

The machine-readable contract is at /v1/tools/array-rational-min-max/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.