Skip to content

Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.

5.9 KB
Raw Blame

SymPy review and execution scope

Reviewed 2026-10-01 against current official SymPy documentation and released 1.14.0 source. An audit of 260 imported API objects and matrix base classes matched 114 installed Python source files byte-for-byte to the official 1.14.0 tag. SymPy has no hosted REST endpoint, authentication, pagination or remote-data workflow in this skill. Core operations execute locally.

Tested environment

Python 3.13.3; SymPy 1.14.0; mpmath 1.3.0; NumPy 2.5.3; SciPy 1.18.1; Matplotlib 3.11.2; IPython 9.17.1; ipywidgets 8.1.9; antlr4-python3-runtime 4.11.1. SymPy 1.14.0 declares mpmath>=1.1,<1.4, so mpmath 1.4.x cannot replace this pin. Core SymPy supports Python 3.9+; the tested optional NumPy/SciPy versions require Python 3.12+.

Every Python documentation block was executed as an ordered session within its own file, except the two explicitly illustrative compiled-wrapper examples (autowrap and ufuncify). 185 blocks passed. Notebook/widget code executed with an Agg plotting backend; a live Jupyter frontend and visual notebook rendering were not verified. Generated Python source was imported and compared with the symbolic expression. C/Fortran source emission ran, but generated native code, Cython/f2py compilation and LaTeX document rendering were not tested.

The repository suite tests/sympy/test_examples.py contains 30 native behavioral checks. It covers exact arithmetic, assumptions/branches, excluded poles, integral ordering, incomplete and local solver outputs, ODE residuals, linear systems, complex condensed SVD, matrix functions/conditioning, discrete events, mechanics linearization, beam/truss/cable equilibrium, unit conventions, control-system conversion, musculotendon construction, quantum operators, Python source generation, lambdify shapes and strict LaTeX parsing.

Limits found during execution

  • In SymPy 1.14.0, P((X > 0) & (Y > 0)) for separately created independent standard normals raises AttributeError involving ProductContinuousDomain. The reference computes P(X > 0) * P(Y > 0) only for those independent variables. This factorization does not apply to dependent random variables.
  • roots can return {} for an irreducible quintic that has five complex roots. Poly.all_roots() preserves exact roots as CRootOf where needed.
  • The released distributed-load Cable.solve implementation consumes only its first positional argument (lowest-point x), despite docstring wording about both x and y. Equal-height centered supports do not determine sag. Its reaction formulas also require independent equilibrium checks. The validated cable example uses a symmetric point load with explicit geometry.
  • Symbolic mechanics examples check small idealized systems, not calibrated physical experiments. Units, boundary conditions, admissible parameter ranges and force/sign conventions remain part of the problem definition.

Official references used