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.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page