Vector projection

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

Compute the vector projection of a finite-number vector onto another.

Use when you need to: vector projection · project a vector onto another vector.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "a": [
    3,
    4
  ],
  "onto": [
    1,
    0
  ]
}

Response:

{
  "result": {
    "result": [
      3,
      0
    ]
  }
}

How to call it

MCP

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

{
  "id": "vector-projection",
  "version": "1.0.0",
  "input": {
    "a": [
      3,
      4
    ],
    "onto": [
      1,
      0
    ]
  }
}

HTTP (no key)

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

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

CLI

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

Get the client at /clients/cli/.