adaptyv
How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user…
Use when you need exact symbolic math in Python — algebra, calculus, equation solving, symbolic linear algebra, or code generation via lambdify/LaTeX. Prefer NumPy or SciPy when floating-point approximations are sufficient.
$ npx -y skills add k-dense-ai/claude-scientific-skills --skill sympy --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sympyContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when you need exact symbolic math in Python — algebra, calculus, equation solving, symbolic linear algebra, or code generation via lambdify/LaTeX. Prefer NumPy or SciPy when floating-point approximations are sufficient.
name: sympy description: Use when you need exact symbolic math in Python — algebra, calculus, equation solving, symbolic linear algebra, or code generation via lambdify/LaTeX. Prefer NumPy or SciPy when floating-point approximations are sufficient. license: https://github.com/sympy/sympy/blob/master/LICENSE allowed-tools: Read Write Edit Bash compatibility: Requires Python 3.9+ and SymPy 1.14+. Optional NumPy/SciPy/Matplotlib for lambdify examples; C/Fortran compiler for autowrap/codegen. metadata: version: "1.3" skill-author: K-Dense Inc.
SymPy is a Python library for symbolic mathematics that enables exact computation using mathematical symbols rather than numerical approximations. This skill provides comprehensive guidance for performing symbolic algebra, calculus, linear algebra, equation solving, physics calculations, and code generation using SymPy.
Tested against **SymPy 1.14.0** (stable; April 2025). Requires **Python 3.9+**.
# Install SymPy using uv uv pip install "sympy>=1.14" # Optional: for lambdify and plotting examples uv pip install numpy scipy matplotlib
Check your version:
import sympy print(sympy.__version__)
Use this skill when:
Seven capability areas are documented in [references/core_capabilities.md](references/core_capabilities.md):
1. **Symbolic computation basics** — symbols, expressions, simplification, substitution. 2. **Calculus** — differentiation, integration, limits, series. 3. **Equation solving** — `solve`, `solveset`, linear and nonlinear systems, ODEs. 4. **Matrices and linear algebra** — see [references/matrices-linear-algebra.md](references/matrices-linear-algebra.md). 5. **Physics and mechanics** — see [references/physics-mechanics.md](references/physics-mechanics.md). 6. **Advanced mathematics** — see [references/advanced-topics.md](references/advanced-topics.md). 7. **Code generation and output** — see [references/code-generation-printing.md](references/code-generation-printing.md).
Deeper treatment of the first three is in [references/core-capabilities.md](references/core-capabilities.md).
from sympy import symbols
x, y, z = symbols('x y z')
# Now x, y, z can be used in expressionsx = symbols('x', positive=True, real=True)
sqrt(x**2) # Returns x (not Abs(x)) due to positive assumptionCommon assumptions: `real`, `positive`, `negative`, `integer`, `rational`, `complex`, `even`, `odd`
from sympy import Rational, S # Correct (exact): expr = Rational(1, 2) * x expr = S(1)/2 * x # Incorrect (floating-point): expr = 0.5 * x # Creates approximate value
from sympy import pi, sqrt result = sqrt(8) + pi result.evalf() # 5.96371554103586 result.evalf(50) # 50 digits of precision
# Slow for many evaluations:
for x_val in range(1000):
result = expr.subs(x, x_val).evalf()
# Fast:
f = lambdify(x, expr, 'numpy')
results = f(np.arange(1000))This skill uses modular reference files for different capabilities:
1. **`core-capabilities.md`**: Symbols, algebra, calculus, simplification, equation solving
2. **`matrices-linear-algebra.md`**: Matrix operations, eigenvalues, linear systems
3. **`physics-mechanics.md`**: Classical mechanics, quantum mechanics, vectors, units
4. **`advanced-topics.md`**: Geometry, number theory, combinatorics, logic, statistics
5. **`code-generation-printing.md`**: Lambdify, codegen, LaTeX output, printing
from sympy import symbols, solve, simplify
x = symbols('x')
# Solve equation
equation = x**2 - 5*x + 6
solutions = solve(equation, x) # [2, 3]
# Verify solutions
for sol in solutions:
result = simplify(equation.subs(x, sol))
assert result == 0# 1. Define symbolic problem
x, y = symbols('x y')
expr = sin(x) + cos(y)
# 2. Manipulate symbolically
simplified = simplify(expr)
derivative = diff(simplified, x)
# 3. Convert to numerical function
f = lambdify((x, y), derivative, 'numpy')
# 4. Evaluate numerically
results = f(x_data, y_data)# Compute result symbolically integral_expr = Integral(x**2, (x, 0, 1)) result = integral_expr.doit() # Generate documentation print(f"
🔔 Claude Scientific Skills is now Scientific Agent Skills. Same skills, broader compatibility — now works with any AI agent that supports the open Agent Skills standard, not just Claude.
How to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user…
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection,…
AlphaGenome API key, free for non-commercial use from deepmind.google.com/science/alphagenome. ALPHA_GENOME_API_KEY is accepted as an alternative spelling.
Plan, execute, and document validation, verification, and transfer of analytical procedures under the governing framework - ICH Q2(R2) and Q14, USP…
Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data…
Autonomously improve a real artifact (code, training recipe, agent harness, data pipeline, prompt) against an objective and an evaluator, using Hypothesis Tree…