DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to have an agent compute an exact matrix determinant with Jacobian

Connect an MCP host to Jacobian so the agent computes exact determinants instead of estimating them.

Short answer: Run npx jacobian@latest setup and choose the agents you use, reviewing the changes before they are written; then Restart your agent host so it loads the Jacobian MCP server; ask the agent to use math.find in inspection mode on matrix.determinant.compute. All steps.

  • Top pick
  • Research
  • Intermediate
  • 30 minutes
  • From the README
  • Any agent

Who it is forA developer or analyst using an AI agent for linear algebra who needs exact rational results rather than approximate ones.

The problemLanguage models often produce approximate or wrong arithmetic for determinants of rational matrices, and the answer cannot be checked.

The outcomeThe agent finds the matrix.determinant.compute operation, reads its contract, and returns the exact determinant from a typed result.

What you need first

  • Python 3.12 or 3.13 on glibc Linux x86-64 for the tested binary install, or another supported Python environment
  • uv with uvx on PATH for the canonical MCP command
  • Node.js 20.17+, 22.13+, or 23.5+ if you use the npm setup command
  • An MCP-capable agent host or a terminal for the CLI

Steps

  1. Run npx jacobian@latest setup and choose the agents you use, reviewing the changes before they are written.
  2. Restart your agent host so it loads the Jacobian MCP server.
  3. Ask the agent to use math.find in inspection mode on matrix.determinant.compute.
  4. Ask the agent to call math.run once with an exact rational matrix of your choice.

Prompt for your agent

Using the Jacobian MCP server from the repo morluto/jacobian, use math.find in inspection mode on matrix.determinant.compute, then call math.run once on the exact rational matrix <matrix>. Return the determinant as an exact value. Verify that the returned value is exact and not a decimal approximation.

Caveat. Singular and QEPCAD are optional system runtimes for only a small subset of operations, so check the backend requirements before relying on a specific operation.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for morluto/jacobian and "Have an agent compute an exact matrix determinant"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer