Skip to main content
skill CX Codex

math-tools — Claude Code skill: exact symbolic computation with SymPy

math-tools — a skill for symbolic mathematics across Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode. Solves algebra, calculus, linear algebra, and number theory problems exactly—no rounding or approximation errors.

no license 1 installs ★ 689 updated 2026-01-18

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ananddtyagi/cc-marketplace --skill math-tools -a claude-code
Open on GitHub

What math-tools does

Runs python scripts/math_calculator.py <operation> <args> and returns results as JSON with exact symbolic answer, LaTeX form, and numeric approximation. Built on SymPy, Python's symbolic math library. Handles arithmetic (fractions, roots, factorials), algebraic manipulation (simplify, expand, factor, solve), calculus (derivatives, integrals, limits, Taylor series), matrices (determinants, inverses, eigenvalues), number theory (GCD, LCM, factorization, primality), and statistics.

Requires Python 3 and SymPy installed (pip install sympy). Expression syntax is standard: x**2 for powers, sin(x), cos(x), exp(x), log(x), constants like pi and oo for infinity. Complex operations accept JSON input for systems of equations or matrix multiplication.

What it helps with

  • solve polynomial or transcendental equations analytically
  • compute derivatives, integrals, limits, and Taylor series
  • factor polynomials and simplify algebraic expressions
  • find eigenvalues, determinants, and matrix inverses
  • calculate GCD, LCM, prime factorization

Example prompts for the agent

  • Factor x**3 - 8 using math-tools
  • Find the derivative of sin(x)*exp(x) with respect to x
  • Solve the system: x + y = 10, x - y = 2

How to install math-tools

1Skills CLI (Vercel)

npx skills add ananddtyagi/cc-marketplace --skill math-tools -a claude-code

2Manually: put the files in place

~/.claude/skills/skills/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/skills/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about math-tools

How do I install math-tools in Claude Code?

Run npx skills add ananddtyagi/cc-marketplace --skill skills -a claude-code, then locate ~/.claude/skills/skills/SKILL.md and enable the skill. You'll need Python 3 and SymPy: pip install sympy.

How does math-tools differ from a regular calculator?

math-tools performs symbolic mathematics—exact algebraic expressions rather than decimal approximations. It simplifies (x**2 - 1)/(x - 1) to x + 1, computes the integral ∫x² dx as x³/3, and solves cubic equations exactly. A standard calculator only returns numbers.

What operations does math-tools support?

Arithmetic, algebra (simplify, expand, factor, solve equations), calculus (derivatives, integrals, limits, series), linear algebra (matrices, determinants, eigenvalues), number theory (factorization, primes, GCD, LCM), and statistics (mean, variance, standard deviation).

Similar skills

All skills for AI and ML →

Project sponsors

Companies that keep this analytics open