Vector angle

vector-angle · version 1.0.0 · Vectors & matrices · free, no key needed

Compute the angle in radians between two equal-length finite-number vectors.

Use when you need to: angle between vectors · vector angle radians.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": [
    1,
    0
  ],
  "b": [
    0,
    1
  ]
}

Response:

{
  "result": {
    "result": 1.5707963267948966
  }
}

How to call it

MCP

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

{
  "id": "vector-angle",
  "version": "1.0.0",
  "input": {
    "a": [
      1,
      0
    ],
    "b": [
      0,
      1
    ]
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/vector-angle/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"a":[1,0],"b":[0,1]}'

The machine-readable contract is at /v1/tools/vector-angle/versions/1.0.0.

CLI

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

Get the client at /clients/cli/.