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
- Run
npx jacobian@latest setupand choose the agents you use, reviewing the changes before they are written. - 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.
- 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer