{
  "id": "task_libraries:symbolic-math/python",
  "path": "/exapedia/python-symbolic-math-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Python symbolic math libraries",
  "answer": [
    {
      "t": "text",
      "text": "Python symbolic math libraries manipulate mathematical expressions as symbols rather than as floating-point numbers. A computer algebra system simplifies, differentiates, and solves expressions before code generation turns the result into numerical functions. These libraries let engineers, researchers, and AI agents derive and check mathematical models in code."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Python symbolic math libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#sympy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F135"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F139"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#zthree-solver",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cvxpy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F177"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#casadi",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pytensor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyomo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#symengine",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pysmt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "PyPI"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#sympy",
          "label": [
            {
              "t": "text",
              "text": "SymPy"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F136"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Symbolic derivative expressions",
            "Symbolic antiderivatives",
            "DCP rule checks",
            "Bit-vector SMT queries"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#sympy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F135"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#zthree-solver",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F166"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#cvxpy",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F173"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F183"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F184"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F185"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#casadi",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pytensor",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F222"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F223"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F224"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pyomo",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F237"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F238"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F239"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F240"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#symengine",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pysmt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F257"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "sympy",
          "name": [
            {
              "t": "fact",
              "fact": "F135"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/sympy/sympy"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/sympy"
            },
            {
              "label": "Docs",
              "href": "https://docs.sympy.org/latest/modules/matrices/matrices.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.sympy.org/latest/modules/matrices/matrices.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F135"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F19"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F20"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/strands-agents/tools",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F151"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def calculate_derivative(expr: Any, var: str, order: int) -> Any:\n    \"\"\"Calculate derivative of expression.\"\"\"\n\n    try:\n        # Check for undefined expressions like 1/0 before attempting differentiation\n        try:\n            # Try to evaluate the expression to check if it's valid\n            test_value = expr.evalf()\n            if test_value.has(sp.zoo) or test_value.has(sp.oo) or test_value.has(-sp.oo) or test_value.has(sp.nan):\n                raise ValueError(f\"Cannot differentiate an undefined expression: {expr}\") from None\n        except (sp.SympifyError, TypeError, ZeroDivisionError):\n            # If evaluation fails, the expression might be undefined\n            raise ValueError(f\"Cannot differentiate an undefined expression: {expr}\") from None\n\n        var_sym = sp.Symbol(var)\n        return sp.diff(expr, var_sym, order)\n    except Exception as e:\n        raise ValueError(f\"Differentiation error: {str(e)}\") from e\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/strands-agents/tools/blob/b03a6183cb3340a9091fc801965e435d5cce2cc4/src/strands_tools/calculator.py#L725-L742",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20sympy%20for%20symbolic%20expressions%20differentiation%20and%20numerical%20evaluation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F135"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from sympy import symbols, diff, cos\n\nx = symbols('x')\nderivative = diff(cos(x), x)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.sympy.org/latest/tutorials/intro-tutorial/calculus.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "intro.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "zthree-solver",
          "name": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Z3Prover/z3"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/z3-solver"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/z3-solver/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F160"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/z3-solver/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F153"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F172"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/pysmt/pysmt",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F171"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "@clear_pending_pop\ndef _solve(self, assumptions: Optional[List[FNode]]=None) -> bool:\n    if assumptions is not None:\n        bool_ass = []\n        other_ass = []\n        for x in assumptions:\n            if x.is_literal():\n                bool_ass.append(self.converter.convert(x))\n            else:\n                other_ass.append(x)\n\n        # maps the fresh literal standing for each non-literal assumption to it\n        self._assumption_keys = {}\n        if len(other_ass) > 0:\n            self.push()\n            for x in other_ass:\n                key = self.mgr.FreshSymbol(template=\"_assumption_%d\")\n                self._assumption_keys[key] = x\n                self.z3.add(self.converter.convert(self.mgr.Implies(key, x)))\n                bool_ass.append(self.converter.convert(key))\n            self.pending_pop = True\n        res = self.z3.check(*bool_ass)\n    else:\n        res = self.z3.check()\n\n    sres = str(res)\n    assert sres in ['unknown', 'sat', 'unsat']\n    if sres == 'unknown':\n        raise SolverReturnedUnknownResultError\n    return (sres == 'sat')\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/pysmt/pysmt/blob/ceb8bc6d956f7ad668b733b4a9ab79465c2d7b98/pysmt/solvers/z3.py#L211-L240",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=z3-solver%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F153"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from z3 import Real, simplify\n\nx = Real('x')\nexpression = simplify(x + 0)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/Z3Prover/z3/blob/master/src/api/python/z3/z3.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F158"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "cvxpy",
          "name": [
            {
              "t": "fact",
              "fact": "F173"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cvxpy/cvxpy"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/cvxpy"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/cvxpy/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F180"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/cvxpy/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F173"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/cvxgrp/dccp",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F191"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def convexify_obj(\n    obj: cp.Minimize | cp.Maximize,\n    linearization_map: dict[int, LinearizationData] | None = None,\n) -> cp.Minimize | None:\n    \"\"\"Convexify an objective function for DCCP problems.\n\n    Linearize non-DCP objectives. If the objective is already DCP, returns it unchanged.\n    If the objective is a maximization problem, it is negated to convert it into a\n    minimization problem.\n\n    Parameters\n    ----------\n    obj : cp.Minimize | cp.Maximize\n        Objective of a problem to be convexified.\n    linearization_map : dict, optional\n        Map for caching linearization parameters.\n\n    Returns\n    -------\n    cp.Minimize or None\n        Convexified objective if linearization is possible, None otherwise.\n\n    \"\"\"\n    # negate the objective if it is a maximization problem\n    expr = obj.expr\n    if isinstance(obj, cp.Maximize):\n        expr = -expr\n    if obj.is_dcp():\n        logger.debug(\"Objective is already DCP.\")\n        return cp.Minimize(expr)\n\n    # linearize the objective expression. If it fails, the gradient is not defined\n    lin = linearize(expr, linearization_map)\n    if lin is not None:\n        return cp.Minimize(lin)\n    return None\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/cvxgrp/dccp/blob/13fbee1ecb696a9860d87af57a3eb80a5067902b/src/dccp/objective.py#L12-L47",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=cvxpy%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F173"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from cvxpy import Variable\nfrom cvxpy.transforms import linearize\n\nx = Variable()\nx.value = 2.0\ntangent = linearize(x ** 2)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://www.cvxpy.org/api_reference/cvxpy.transforms.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "cvxpy.transforms.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F178"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "casadi",
          "name": [
            {
              "t": "fact",
              "fact": "F193"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/casadi/casadi"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/casadi"
            },
            {
              "label": "Docs",
              "href": "http://docs.casadi.org"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F37"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F195"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "http://docs.casadi.org",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F193"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/opencap-org/opencap-processing",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def generateF(dim, script_name):\n    foo_module = importlib.import_module(script_name)\n    importlib.reload(foo_module)\n    cg = ca.CodeGenerator('foo_jac')\n    arg = ca.SX.sym('arg', dim)\n    y,_,_ = foo_module.foo(arg)\n    F = ca.Function('F',[arg],[y])\n    cg.add(F)\n    cg.add(F.jacobian())\n    cg.generate()\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/opencap-org/opencap-processing/blob/72b5416bf6172fe3d9b42b01e1a02252362b20fc/UtilsDynamicSimulations/OpenSimAD/utilsOpenSimAD.py#L1661-L1670",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20casadi%20for%20symbolic%20expressions%20differentiation%20and%20numerical%20evaluation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F193"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import casadi as ca\n\nx = ca.SX.sym('x')\nderivative = ca.jacobian(ca.sin(x), x)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://web.casadi.org/docs/",
                  "label": [
                    {
                      "t": "text",
                      "text": "docs.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F198"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pytensor",
          "name": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pymc-devs/pytensor"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pytensor"
            },
            {
              "label": "Docs",
              "href": "https://pytensor.readthedocs.io/en/latest/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F218"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pytensor.readthedocs.io/en/latest/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "import pytensor\nimport pytensor.tensor as pt\n\nx = pt.dscalar('x')\nderivative = pt.grad(x ** 2, x)\nevaluate = pytensor.function([x], derivative)\nvalue = evaluate(3.0)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pytensor.readthedocs.io/en/latest/tutorial/gradients.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "gradients.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pytensor%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pyomo",
          "name": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/Pyomo/pyomo"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pyomo"
            },
            {
              "label": "Docs",
              "href": "https://pyomo.readthedocs.io/en/stable/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F234"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pyomo.readthedocs.io/en/stable/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pyomo.environ import ConcreteModel, Var\nfrom pyomo.core.expr.calculus.derivatives import differentiate, Modes\n\nmodel = ConcreteModel()\nmodel.x = Var(initialize=2)\nderivative = differentiate(model.x ** 2, wrt=model.x, mode=Modes.reverse_symbolic)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pyomo.readthedocs.io/en/stable/api/pyomo.core.expr.calculus.derivatives.differentiate.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "pyomo.core.expr.calculus.derivatives.differentiate.html"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pyomo%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "symengine",
          "name": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/symengine/symengine.py"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/symengine"
            },
            {
              "label": "Docs",
              "href": "https://symengine.org/symengine.py"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F62"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F250"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://symengine.org/symengine.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F243"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F65"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F66"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F67"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F68"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F69"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F70"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from symengine import Symbol\n\nx, y = Symbol('x'), Symbol('y')\nexpanded = ((x + y) ** 2).expand()\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/symengine/symengine.py/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Python%20projects%20using%20symengine%20for%20symbolic%20expressions%20differentiation%20and%20numerical%20evaluation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F243"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F248"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pysmt",
          "name": [
            {
              "t": "fact",
              "fact": "F257"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pysmt/pysmt"
            },
            {
              "label": "PyPI",
              "href": "https://pypi.org/project/pysmt"
            },
            {
              "label": "Docs",
              "href": "https://pypi.org/project/pysmt/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F264"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F258"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pypi.org/project/pysmt/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F257"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/riscv/riscv-crypto",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F275"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "python",
              "code": "def overlaps(i,j):\n    \"\"\"\n    Returns True if two instructions i,j overlap in their encoding.\n\n    TODO: Add operand constraints into the solver formula.\n    \"\"\"\n    if(i.pseudo or j.pseudo):\n        return False\n    ILEN=32\n\n    instr   = Symbol(\"instr\"    , BVType(width=ILEN))\n    imask   = Symbol(\"imask\"    , BVType(width=ILEN))\n    imatch  = Symbol(\"imatch\"   , BVType(width=ILEN))\n    jmask   = Symbol(\"jmask\"    , BVType(width=ILEN))\n    jmatch  = Symbol(\"jmatch\"   , BVType(width=ILEN))\n\n    domains = And([\n        EQ(imask , BV(i.mask() ,width=ILEN)),\n        EQ(imatch, BV(i.match(),width=ILEN)),\n        EQ(jmask , BV(j.mask() ,width=ILEN)),\n        EQ(jmatch, BV(j.match(),width=ILEN))\n    ])\n\n    problem = And([\n        EQ(instr & imask, imatch),\n        EQ(instr & jmask, jmatch)\n    ])\n\n    formula = And(domains, problem)\n\n    return is_sat(formula)\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/riscv/riscv-crypto/blob/9cb90879050f68de8ba0b2f8bc34bec599ac8025/bin/better_parse_opcodes.py#L298-L328",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pysmt%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F257"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "python",
              "code": "from pysmt.shortcuts import Symbol, Int, Plus, simplify\nfrom pysmt.typing import INT\n\nx = Symbol('x', INT)\nexpression = simplify(Plus(x, Int(0)))\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pysmt/pysmt/blob/29bdb9c363e3f4a953dac73e908a45571db7623f/pysmt/shortcuts.py",
                  "label": [
                    {
                      "t": "text",
                      "text": "shortcuts.py"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F262"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Python symbolic math library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#sympy",
          "label": [
            {
              "t": "text",
              "text": "SymPy"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits general computer algebra, symbolic calculus, and equation solving. "
        },
        {
          "t": "link",
          "href": "#cvxpy",
          "label": [
            {
              "t": "text",
              "text": "CVXPY"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#pyomo",
          "label": [
            {
              "t": "text",
              "text": "Pyomo"
            }
          ]
        },
        {
          "t": "text",
          "text": " suit optimization models. "
        },
        {
          "t": "link",
          "href": "#zthree-solver",
          "label": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits satisfiability problems over arithmetic, Boolean, and bit-vector expressions. "
        },
        {
          "t": "link",
          "href": "#casadi",
          "label": [
            {
              "t": "text",
              "text": "CasADi"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits numerical optimization that needs automatic derivatives."
        }
      ]
    },
    {
      "q": "What is SymPy?",
      "a": [
        {
          "t": "link",
          "href": "#sympy",
          "label": [
            {
              "t": "text",
              "text": "SymPy"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a computer algebra system in Python for symbolic calculus, equation solving, and expression manipulation. It also generates code for numerical use."
        }
      ]
    },
    {
      "q": "What is CVXPY?",
      "a": [
        {
          "t": "link",
          "href": "#cvxpy",
          "label": [
            {
              "t": "text",
              "text": "CVXPY"
            }
          ]
        },
        {
          "t": "text",
          "text": " is a domain-specific language for modeling convex optimization problems in Python."
        }
      ]
    },
    {
      "q": "What is Pyomo?",
      "a": [
        {
          "t": "link",
          "href": "#pyomo",
          "label": [
            {
              "t": "text",
              "text": "Pyomo"
            }
          ]
        },
        {
          "t": "text",
          "text": " is an optimization modeling framework with algebraic modeling expressions and interfaces to solvers."
        }
      ]
    },
    {
      "q": "What is CasADi?",
      "a": [
        {
          "t": "link",
          "href": "#casadi",
          "label": [
            {
              "t": "text",
              "text": "CasADi"
            }
          ]
        },
        {
          "t": "text",
          "text": " builds symbolic models with automatic differentiation for numerical optimization and generates self-contained C code. Existing models must be rewritten in CasADi syntax."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, sympy",
      "display": "SymPy",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, sympy",
      "display": "165.7M",
      "asOf": "2026-11-17"
    },
    "F3": {
      "label": "License, sympy",
      "display": "BSD",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, sympy",
      "display": "1.14.0, Apr 2025",
      "asOf": "2025-04-27"
    },
    "F5": {
      "label": "Package release date, sympy",
      "display": "Apr 2025",
      "asOf": "2025-04-27"
    },
    "F6": {
      "label": "Repository stars, sympy",
      "display": "15.1K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Symbolic derivatives, sympy",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Numerical evaluation, sympy",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Symbol substitution, sympy",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Code generation, sympy",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, sympy",
      "display": "pip install sympy",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, sympy",
      "display": "Performs symbolic calculus, equation solving, and expression manipulation.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, sympy",
      "display": "Handles symbolic calculus",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, sympy",
      "display": "Compute derivatives, integrals, limits, and series expansions.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, sympy",
      "display": "Generates code for numerical use",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, sympy",
      "display": "Generate source code for later compilation or inclusion in another project.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, sympy",
      "display": "Assumptions control simplification",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, sympy",
      "display": "Declare positive or real symbols when those properties justify a simplification.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations lead, sympy",
      "display": "lambdify needs trusted expressions",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations, sympy",
      "display": "Keep unsanitized input out of lambdify.",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Quickstart, sympy",
      "display": "from sympy import *\nx, t, z, nu = symbols('x t z nu')\n\ninit_printing(use_unicode=True)\n\ndiff(sin(x)*exp(x), x)\n\nintegrate(exp(x)*sin(x) + exp(x)*cos(x), x)\n\nintegrate(sin(x**2), (x, -oo, oo))\n\nlimit(sin(x)/x, x, 0)\n\nsolve(x**2 - 2, x)\n",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Project function, sympy",
      "display": "def calculate_derivative(expr: Any, var: str, order: int) -> Any:\n    \"\"\"Calculate derivative of expression.\"\"\"\n\n    try:\n        # Check for undefined expressions like 1/0 before attempting differentiation\n        try:\n            # Try to evaluate the expression to check if it's valid\n            test_value = expr.evalf()\n            if test_value.has(sp.zoo) or test_value.has(sp.oo) or test_value.has(-sp.oo) or test_value.has(sp.nan):\n                raise ValueError(f\"Cannot differentiate an undefined expression: {expr}\") from None\n        except (sp.SympifyError, TypeError, ZeroDivisionError):\n            # If evaluation fails, the expression might be undefined\n            raise ValueError(f\"Cannot differentiate an undefined expression: {expr}\") from None\n\n        var_sym = sp.Symbol(var)\n        return sp.diff(expr, var_sym, order)\n    except Exception as e:\n        raise ValueError(f\"Differentiation error: {str(e)}\") from e\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function reference, sympy",
      "display": "calculator.py · calculate_derivative()",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project repository, sympy",
      "display": "strands-agents/tools",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project stars, strands-agents/tools",
      "display": "1.3K",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project push date, strands-agents/tools",
      "display": "Nov 2026",
      "asOf": "2026-11-04"
    },
    "F27": {
      "label": "Library name, casadi",
      "display": "CasADi",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Monthly downloads, casadi",
      "display": "2.0M",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "License, casadi",
      "display": "LGPL-3.0-or-later",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Package release, casadi",
      "display": "3.8.2, Oct 2026",
      "asOf": "2026-10-27"
    },
    "F31": {
      "label": "Package release date, casadi",
      "display": "Oct 2026",
      "asOf": "2026-10-27"
    },
    "F32": {
      "label": "Repository stars, casadi",
      "display": "2.3K",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Symbolic derivatives, casadi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Numerical evaluation, casadi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Code generation, casadi",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Install, casadi",
      "display": "pip install casadi",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "What it does, casadi",
      "display": "Builds symbolic models with automatic differentiation for numerical optimization.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "strengths lead, casadi",
      "display": "Computes model derivatives",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "strengths, casadi",
      "display": "Build Jacobians and gradients from symbolic model expressions.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, casadi",
      "display": "Generates self-contained C code",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, casadi",
      "display": "Export supported function objects as C code.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "limitations lead, casadi",
      "display": "Existing models need CasADi syntax",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "limitations, casadi",
      "display": "Reimplement existing models with CasADi expressions before using its differentiation tools.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, casadi",
      "display": "Algebraic manipulation is limited",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, casadi",
      "display": "Choose a computer algebra system for broader symbolic expression manipulation.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "Quickstart, casadi",
      "display": "from casadi import *\n\n\nA = SX.sym('A',3,2)\nx = SX.sym('x',2)\nprint(jacobian(A@x,x))\n\n\nx = SX.sym('x',2)\ny = SX.sym('y')\nf = Function('f',[x,y],\\\n           [x,sin(y)*x])\nprint(f)\n\n\nr0, q0 = f(1.1,3.3)\nprint('r0:',r0)\nprint('q0:',q0)\n\n",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Project function, casadi",
      "display": "def generateF(dim, script_name):\n    foo_module = importlib.import_module(script_name)\n    importlib.reload(foo_module)\n    cg = ca.CodeGenerator('foo_jac')\n    arg = ca.SX.sym('arg', dim)\n    y,_,_ = foo_module.foo(arg)\n    F = ca.Function('F',[arg],[y])\n    cg.add(F)\n    cg.add(F.jacobian())\n    cg.generate()\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function reference, casadi",
      "display": "utilsOpenSimAD.py · generateF()",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project repository, casadi",
      "display": "opencap-org/opencap-processing",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project stars, opencap-org/opencap-processing",
      "display": "163",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project push date, opencap-org/opencap-processing",
      "display": "Sep 2026",
      "asOf": "2026-09-10"
    },
    "F52": {
      "label": "Library name, symengine",
      "display": "SymEngine",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Monthly downloads, symengine",
      "display": "373.1K",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "License, symengine",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Package release, symengine",
      "display": "0.15.0, Oct 2026",
      "asOf": "2026-10-31"
    },
    "F56": {
      "label": "Package release date, symengine",
      "display": "Oct 2026",
      "asOf": "2026-10-31"
    },
    "F57": {
      "label": "Repository stars, symengine",
      "display": "189",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Symbolic derivatives, symengine",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Numerical evaluation, symengine",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Symbol substitution, symengine",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "Install, symengine",
      "display": "pip install symengine",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "What it does, symengine",
      "display": "Exposes the C++ SymEngine symbolic manipulation library to Python.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths lead, symengine",
      "display": "Creates numerical callbacks",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths, symengine",
      "display": "Turn symbolic expressions into callbacks accepting real or complex numerical inputs.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths lead, symengine",
      "display": "Expands symbolic expressions",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "strengths, symengine",
      "display": "Build expressions with symbols and expand their products.",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations lead, symengine",
      "display": "LLVM needs a compatible build",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations, symengine",
      "display": "Select the LLVM backend only in builds compiled with LLVM support.",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations lead, symengine",
      "display": "Source builds need matching core",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "limitations, symengine",
      "display": "Use the supported SymEngine core revision when building the Python wrapper.",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Quickstart, symengine",
      "display": "from symengine import var\nx, y, z = var('x y z')\ne = (x + y + z)**2\nexpanded_e = e.expand()\nprint(expanded_e)\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function, symengine",
      "display": "@cacheit\ndef build_constraint_functions(variables, constraints, parameters=None, func_options=None, jac_options=None, hess_options=None):\n    \"\"\"Build callables functions for the constraints, constraint Jacobian, and constraint Hessian.\n\n    Parameters\n    ----------\n    variables : List[symengine.Symbol]\n        Free variables in the symengine_graph. By convention these are usually all\n        instances of StateVariables.\n    constraints : List[symengine.Basic]\n        List of SymEngine expression to compile\n    parameters : Optional[List[symengine.Symbol]]\n        Free variables in the symengine_graph. These are typically external\n        parameters that are controlled by the user.\n    func_options : None, optional\n        Options to pass to ``lambdify`` when compiling the function.\n    jac_options : Optional[Dict[str, str]]\n        Options to pass to ``lambdify`` when compiling the Jacobian.\n    hess_options : Optional[Dict[str, str]]\n        Options to pass to ``lambdify`` when compiling Hessian.\n\n    Returns\n    -------\n    ConstraintFunctions\n\n    Notes\n    -----\n    Default options for compiling the function, gradient and Hessian are defined by ``_get_lambdify_options``.\n\n    \"\"\"\n    if parameters is None:\n        parameters = []\n    else:\n        parameters = [wrap_symbol(p) for p in parameters]\n    variables = tuple(variables)\n    wrt = variables\n    parameters = tuple(parameters)\n    constraint_func, jacobian_func, hessian_func = None, None, None\n    # Replace complex infinity (zoo) with real infinity because SymEngine\n    # cannot lambdify complex numbers. We also replace in the derivatives in\n    # case some differentiation would produce a complex infinity. The\n    # replacement is assumed to be cheap enough that it's safer to replace the\n    # complex values and pay the minor time penalty.\n    inp = sympify(variables + parameters)\n    graph = sympify([sympify(f).xreplace({zoo: oo}) for f in constraints])\n    constraint_func = lambdify(inp, [graph], **_get_lambidfy_options(func_options))\n\n    grad_graphs = list(list(c.diff(w).xreplace({zoo: oo}) for w in wrt) for c in graph)\n    jacobian_func = lambdify(inp, grad_graphs, **_get_lambidfy_options(jac_options))\n\n    hess_graphs = list(list(list(g.diff(w).xreplace({zoo: oo}) for w in wrt) for g in c) for c in grad_graphs)\n    hessian_func = lambdify(inp, hess_graphs, **_get_lambidfy_options(hess_options))\n    return ConstraintFunctions(cons_func=constraint_func, cons_jac=jacobian_func, cons_hess=hessian_func)\n",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project function reference, symengine",
      "display": "sympydiff_utils.py · build_constraint_functions()",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project repository, symengine",
      "display": "pycalphad/pycalphad",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project stars, pycalphad/pycalphad",
      "display": "433",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Project push date, pycalphad/pycalphad",
      "display": "Nov 2026",
      "asOf": "2026-11-14"
    },
    "F77": {
      "label": "Library name, pymbolic",
      "display": "Pymbolic",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Monthly downloads, pymbolic",
      "display": "46.4K",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "License, pymbolic",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Package release, pymbolic",
      "display": "2025.1, Oct 2025",
      "asOf": "2025-10-03"
    },
    "F81": {
      "label": "Package release date, pymbolic",
      "display": "Oct 2025",
      "asOf": "2025-10-03"
    },
    "F82": {
      "label": "Repository stars, pymbolic",
      "display": "134",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Symbolic derivatives, pymbolic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Numerical evaluation, pymbolic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Symbol substitution, pymbolic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Code generation, pymbolic",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "Install, pymbolic",
      "display": "pip install pymbolic",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "What it does, pymbolic",
      "display": "Provides extensible symbolic expression trees and transformation visitors.",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths lead, pymbolic",
      "display": "Extends symbolic expression types",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths, pymbolic",
      "display": "Add custom symbolic entities and operations through expression classes and visitors.",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths lead, pymbolic",
      "display": "Compiles expressions to Python bytecode",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "strengths, pymbolic",
      "display": "Use CompiledExpression to create an evaluatable compiled expression.",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations lead, pymbolic",
      "display": "Offers a smaller algebra toolkit",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations, pymbolic",
      "display": "Use SymPy when a full computer algebra system is required.",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Quickstart, pymbolic",
      "display": "import pymbolic as pmbl\nx = pmbl.var(\"x\")\nx\n\nu = (x+1)**5\nu\nprint(u)\n\nprint(pmbl.differentiate(u, 'x'))\n\nfrom pymbolic.mapper import IdentityMapper\nclass MyMapper(IdentityMapper):\n    def map_sum(self, expr):\n        return pmbl.primitives.Product(expr.children)\nprint(u)\nprint(MyMapper()(u))\n",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Project function, pymbolic",
      "display": "def aff_to_expr(aff: nisl.Aff) -> ArithmeticExpression:\n    from pymbolic import var\n\n    denom = aff.denominator().to_python()\n\n    result = (aff.constant*denom).to_python()\n    for dt in aff.active_dim_types:\n        for name in aff.space.dimtype_to_names[dt]:\n            coeff = (aff.get_coefficient(name)*denom).to_python()\n            if coeff:\n                result += coeff*var(name)\n\n    for i in range(aff.num_divs):\n        coeff = (aff.get_div_coefficient(i)*denom).to_python()\n        if coeff:\n            result += coeff*aff_to_expr(aff.get_div(i))\n\n    assert not isinstance(result, complex)\n    return flatten(result // denom)\n",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Project function reference, pymbolic",
      "display": "symbolic.py · aff_to_expr()",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Project repository, pymbolic",
      "display": "inducer/loopy",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project stars, inducer/loopy",
      "display": "640",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project push date, inducer/loopy",
      "display": "Oct 2026",
      "asOf": "2026-10-28"
    },
    "F101": {
      "label": "Developer need",
      "display": "General symbolic calculus",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Why choose sympy",
      "display": "derivatives, integrals, limits, and series",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Developer need in introduction",
      "display": "general symbolic calculus",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Numerical callbacks from symbolic expressions",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose symengine",
      "display": "real and complex numerical input callbacks",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "numerical callbacks from symbolic expressions",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider sympy",
      "display": "broader symbolic calculus is required",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Derivatives for optimization models",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose casadi",
      "display": "Jacobian and gradient construction",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "derivatives for optimization models",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "When to consider sympy",
      "display": "a general computer algebra system is required",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Developer need",
      "display": "Custom symbolic expression types",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Why choose pymbolic",
      "display": "extensible entities and visitor operations",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Developer need in introduction",
      "display": "custom symbolic expression types",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "When to consider sympy",
      "display": "general calculus matters more than custom expression visitors",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Page introduction",
      "display": "Python symbolic math libraries let developers manipulate mathematical expressions and solve equations.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Which library should I use for general symbolic calculus?",
      "display": "SymPy covers symbolic derivatives, integrals, limits, and series expansions.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Can CasADi differentiate an existing Python model unchanged?",
      "display": "Existing models must be reimplemented using CasADi syntax.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Is CasADi a general computer algebra system?",
      "display": "Its own scope distinguishes its limited expression manipulation from a proper computer algebra system.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: Why does SymPy leave a square root unsimplified?",
      "display": "A simplification must be valid for every possible value allowed by the symbol’s assumptions.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Why does SymPy leave a square root unsimplified?",
      "display": "Creating a positive symbol permits simplifications justified by positivity.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can lambdify accept unsanitized expressions?",
      "display": "SymPy explicitly warns that lambdify uses exec and should not receive unsanitized input.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: How does symbolic substitution differ from numerical evaluation?",
      "display": "Substitution replaces parts of an expression with other expressions.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: How does symbolic substitution differ from numerical evaluation?",
      "display": "SymEngine Lambdify builds callbacks that evaluate symbolic expressions from numerical inputs.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Can SymEngine numerical callbacks accept complex inputs?",
      "display": "The current own Lambdify API describes real or complex input and output buffers.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Does every SymEngine build support the LLVM backend?",
      "display": "Selecting LLVM raises an error when the library was not compiled with LLVM support.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can the SymEngine Python wrapper build against any core revision?",
      "display": "The Python wrapper supports a specific core commit or tag.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Which libraries can emit source code?",
      "display": "SymPy codegen produces code to compile later or include in another project.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Which libraries can emit source code?",
      "display": "CasADi generates self-contained C code for a supported subset of function objects.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Which libraries can emit source code?",
      "display": "Pymbolic can return Python source for a function evaluating an expression.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: When should I use Pymbolic instead of a full computer algebra system?",
      "display": "Pymbolic emphasizes extensible expression trees and custom manipulation.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: When should I use Pymbolic instead of a full computer algebra system?",
      "display": "Its README directs users seeking a full computer algebra system to alternatives including SymPy.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Does a symbolic expression always expand itself automatically?",
      "display": "SymPy leaves most simplifications unapplied automatically.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "FAQ: Does a symbolic expression always expand itself automatically?",
      "display": "Pymbolic provides explicit mapper-based expression manipulation.",
      "asOf": "2026-11-17"
    },
    "F135": {
      "label": "Library name, sympy",
      "display": "SymPy",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Monthly downloads, sympy",
      "display": "169.9M",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "License, sympy",
      "display": "BSD",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release, sympy",
      "display": "1.14.0",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Package release date, sympy",
      "display": "Apr 2025",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Install, sympy",
      "display": "pip install sympy",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Quickstart, sympy",
      "display": "from sympy import symbols, diff, cos\n\nx = symbols('x')\nderivative = diff(cos(x), x)\n",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Repository stars, sympy",
      "display": "15.1K",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Symbolic derivative expressions, sympy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Symbolic antiderivatives, sympy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "DCP rule checks, sympy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Bit-vector SMT queries, sympy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Native expression role, sympy",
      "display": "General computer algebra with symbolic calculus and expression manipulation.",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "First-call requirements, sympy",
      "display": "[\"Supported Python and SymPy dependencies. The symbol is free and this is a formal derivative; no numerical evaluation, printer setup, or generated callback is needed.\"]",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Project function, sympy",
      "display": "def calculate_derivative(expr: Any, var: str, order: int) -> Any:\n    \"\"\"Calculate derivative of expression.\"\"\"\n\n    try:\n        # Check for undefined expressions like 1/0 before attempting differentiation\n        try:\n            # Try to evaluate the expression to check if it's valid\n            test_value = expr.evalf()\n            if test_value.has(sp.zoo) or test_value.has(sp.oo) or test_value.has(-sp.oo) or test_value.has(sp.nan):\n                raise ValueError(f\"Cannot differentiate an undefined expression: {expr}\") from None\n        except (sp.SympifyError, TypeError, ZeroDivisionError):\n            # If evaluation fails, the expression might be undefined\n            raise ValueError(f\"Cannot differentiate an undefined expression: {expr}\") from None\n\n        var_sym = sp.Symbol(var)\n        return sp.diff(expr, var_sym, order)\n    except Exception as e:\n        raise ValueError(f\"Differentiation error: {str(e)}\") from e\n",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Project source file, sympy",
      "display": "src/strands_tools/calculator.py",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Project full_name, sympy",
      "display": "strands-agents/tools",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Project stargazers_count, sympy",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Library name, z3-solver",
      "display": "Z3",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Monthly downloads, z3-solver",
      "display": "8.2M",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "License, z3-solver",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Package release, z3-solver",
      "display": "5.4.1.0",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Package release date, z3-solver",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Install, z3-solver",
      "display": "pip install z3-solver",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Quickstart, z3-solver",
      "display": "from z3 import Real, simplify\n\nx = Real('x')\nexpression = simplify(x + 0)\n",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Official description, z3-solver",
      "display": "Solves SMT problems.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Quickstart source file, z3-solver",
      "display": "src/api/python/z3/z3.py",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Repository stars, z3-solver",
      "display": "13.0K",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Symbolic derivative expressions, z3-solver",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Symbolic antiderivatives, z3-solver",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "DCP rule checks, z3-solver",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Bit-vector SMT queries, z3-solver",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Native expression role, z3-solver",
      "display": "Typed SMT arithmetic/Boolean/bit-vector expressions, simplification, and satisfiability solving.",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "First-call requirements, z3-solver",
      "display": "[\"Install the z3-solver distribution, imported as z3, with a compatible native binary/runtime. This constructs and simplifies a symbolic real-arithmetic expression; it does not run an SMT query or prove a model property.\"]",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project function, z3-solver",
      "display": "@clear_pending_pop\ndef _solve(self, assumptions: Optional[List[FNode]]=None) -> bool:\n    if assumptions is not None:\n        bool_ass = []\n        other_ass = []\n        for x in assumptions:\n            if x.is_literal():\n                bool_ass.append(self.converter.convert(x))\n            else:\n                other_ass.append(x)\n\n        # maps the fresh literal standing for each non-literal assumption to it\n        self._assumption_keys = {}\n        if len(other_ass) > 0:\n            self.push()\n            for x in other_ass:\n                key = self.mgr.FreshSymbol(template=\"_assumption_%d\")\n                self._assumption_keys[key] = x\n                self.z3.add(self.converter.convert(self.mgr.Implies(key, x)))\n                bool_ass.append(self.converter.convert(key))\n            self.pending_pop = True\n        res = self.z3.check(*bool_ass)\n    else:\n        res = self.z3.check()\n\n    sres = str(res)\n    assert sres in ['unknown', 'sat', 'unsat']\n    if sres == 'unknown':\n        raise SolverReturnedUnknownResultError\n    return (sres == 'sat')\n",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project source file, z3-solver",
      "display": "pysmt/solvers/z3.py",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project full_name, z3-solver",
      "display": "pysmt/pysmt",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Project stargazers_count, z3-solver",
      "display": "641",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Library name, cvxpy",
      "display": "CVXPY",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Monthly downloads, cvxpy",
      "display": "5.3M",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "License, cvxpy",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Package release, cvxpy",
      "display": "1.9.3",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Package release date, cvxpy",
      "display": "Sep 2026",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Install, cvxpy",
      "display": "pip install cvxpy",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Quickstart, cvxpy",
      "display": "from cvxpy import Variable\nfrom cvxpy.transforms import linearize\n\nx = Variable()\nx.value = 2.0\ntangent = linearize(x ** 2)\n",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Official description, cvxpy",
      "display": "Models convex optimization problems in Python.",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Quickstart source file, cvxpy",
      "display": "api_reference/cvxpy.transforms.html",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Repository stars, cvxpy",
      "display": "6.4K",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Symbolic derivative expressions, cvxpy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Symbolic antiderivatives, cvxpy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "DCP rule checks, cvxpy",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Bit-vector SMT queries, cvxpy",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Native expression role, cvxpy",
      "display": "Convex optimization expression analysis and local affine approximation; gradients are numerical sparse data at supplied values.",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "First-call requirements, cvxpy",
      "display": "[\"Supported Python/numerical dependencies. Set a valid point before linearizing; the result is an affine approximation at that value, not a free-symbol antiderivative or a global optimization guarantee. No solve is required for this first operation.\"]",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project function, cvxpy",
      "display": "def convexify_obj(\n    obj: cp.Minimize | cp.Maximize,\n    linearization_map: dict[int, LinearizationData] | None = None,\n) -> cp.Minimize | None:\n    \"\"\"Convexify an objective function for DCCP problems.\n\n    Linearize non-DCP objectives. If the objective is already DCP, returns it unchanged.\n    If the objective is a maximization problem, it is negated to convert it into a\n    minimization problem.\n\n    Parameters\n    ----------\n    obj : cp.Minimize | cp.Maximize\n        Objective of a problem to be convexified.\n    linearization_map : dict, optional\n        Map for caching linearization parameters.\n\n    Returns\n    -------\n    cp.Minimize or None\n        Convexified objective if linearization is possible, None otherwise.\n\n    \"\"\"\n    # negate the objective if it is a maximization problem\n    expr = obj.expr\n    if isinstance(obj, cp.Maximize):\n        expr = -expr\n    if obj.is_dcp():\n        logger.debug(\"Objective is already DCP.\")\n        return cp.Minimize(expr)\n\n    # linearize the objective expression. If it fails, the gradient is not defined\n    lin = linearize(expr, linearization_map)\n    if lin is not None:\n        return cp.Minimize(lin)\n    return None\n",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Project source file, cvxpy",
      "display": "src/dccp/objective.py",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project full_name, cvxpy",
      "display": "cvxgrp/dccp",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project stargazers_count, cvxpy",
      "display": "136",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Library name, casadi",
      "display": "CasADi",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Monthly downloads, casadi",
      "display": "4.1M",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "License, casadi",
      "display": "LGPL-3.0-or-later",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Package release, casadi",
      "display": "3.8.2",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Package release date, casadi",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Install, casadi",
      "display": "pip install casadi",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Quickstart, casadi",
      "display": "import casadi as ca\n\nx = ca.SX.sym('x')\nderivative = ca.jacobian(ca.sin(x), x)\n",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Repository stars, casadi",
      "display": "2.3K",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Symbolic derivative expressions, casadi",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Symbolic antiderivatives, casadi",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "DCP rule checks, casadi",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Bit-vector SMT queries, casadi",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Native expression role, casadi",
      "display": "Differentiable symbolic model graphs, callable functions, and supported C code generation for numerical optimization.",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "First-call requirements, casadi",
      "display": "[\"Supported Python/native CasADi wheel. The expression must use CasADi symbolic operators. This builds a symbolic Jacobian graph, not a derivative of arbitrary unchanged Python code; no solver, source generation, or compiler is invoked.\"]",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project function, casadi",
      "display": "def generateF(dim, script_name):\n    foo_module = importlib.import_module(script_name)\n    importlib.reload(foo_module)\n    cg = ca.CodeGenerator('foo_jac')\n    arg = ca.SX.sym('arg', dim)\n    y,_,_ = foo_module.foo(arg)\n    F = ca.Function('F',[arg],[y])\n    cg.add(F)\n    cg.add(F.jacobian())\n    cg.generate()\n",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project source file, casadi",
      "display": "UtilsDynamicSimulations/OpenSimAD/utilsOpenSimAD.py",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project full_name, casadi",
      "display": "opencap-org/opencap-processing",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project stargazers_count, casadi",
      "display": "163",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Library name, pytensor",
      "display": "PyTensor",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Monthly downloads, pytensor",
      "display": "1.5M",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "License, pytensor",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release, pytensor",
      "display": "3.3.8",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Package release date, pytensor",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Install, pytensor",
      "display": "pip install pytensor",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart, pytensor",
      "display": "import pytensor\nimport pytensor.tensor as pt\n\nx = pt.dscalar('x')\nderivative = pt.grad(x ** 2, x)\nevaluate = pytensor.function([x], derivative)\nvalue = evaluate(3.0)\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Official description, pytensor",
      "display": "Compiles mathematical expressions for evaluation on CPUs and GPUs.",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Quickstart source file, pytensor",
      "display": "tutorial/gradients.html",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Repository stars, pytensor",
      "display": "654",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Symbolic derivative expressions, pytensor",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Symbolic antiderivatives, pytensor",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "DCP rule checks, pytensor",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Bit-vector SMT queries, pytensor",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Native expression role, pytensor",
      "display": "Typed tensor expression graphs, symbolic gradient construction, graph optimizations, and compiled numerical execution.",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "First-call requirements, pytensor",
      "display": "[\"Supported Python/NumPy and configured PyTensor compiler/backend. The graph is symbolic until compiled/called; first compilation may use native tooling depending on configuration. This research did not compile, evaluate, or inspect local backend configuration.\"]",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Library name, pyomo",
      "display": "Pyomo",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Monthly downloads, pyomo",
      "display": "1.2M",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "License, pyomo",
      "display": "BSD-3-Clause",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release, pyomo",
      "display": "6.10.1",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Package release date, pyomo",
      "display": "Jun 2026",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Install, pyomo",
      "display": "pip install pyomo",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Quickstart, pyomo",
      "display": "from pyomo.environ import ConcreteModel, Var\nfrom pyomo.core.expr.calculus.derivatives import differentiate, Modes\n\nmodel = ConcreteModel()\nmodel.x = Var(initialize=2)\nderivative = differentiate(model.x ** 2, wrt=model.x, mode=Modes.reverse_symbolic)\n",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Official description, pyomo",
      "display": "Models optimization problems.",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Quickstart source file, pyomo",
      "display": "api/pyomo.core.expr.calculus.derivatives.differentiate.html",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Repository stars, pyomo",
      "display": "2.6K",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Symbolic derivative expressions, pyomo",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Symbolic antiderivatives, pyomo",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "DCP rule checks, pyomo",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Bit-vector SMT queries, pyomo",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Native expression role, pyomo",
      "display": "Algebraic modeling expressions with explicitly selectable symbolic or numerical derivative modes and solver/model interfaces.",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "First-call requirements, pyomo",
      "display": "[\"Supported Python/Pyomo. Attach the variable to a concrete model and choose reverse_symbolic explicitly; the default differentiation mode is numerical. No external optimization solver is required to construct this expression.\"]",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Library name, symengine",
      "display": "SymEngine",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Monthly downloads, symengine",
      "display": "365.8K",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "License, symengine",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Package release, symengine",
      "display": "0.15.0",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release date, symengine",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Install, symengine",
      "display": "pip install symengine",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Quickstart, symengine",
      "display": "from symengine import Symbol\n\nx, y = Symbol('x'), Symbol('y')\nexpanded = ((x + y) ** 2).expand()\n",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Repository stars, symengine",
      "display": "189",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Symbolic derivative expressions, symengine",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Symbolic antiderivatives, symengine",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "DCP rule checks, symengine",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Bit-vector SMT queries, symengine",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Native expression role, symengine",
      "display": "Python bindings to C++ symbolic expressions, transformations, and build-dependent numerical callback backends.",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "First-call requirements, symengine",
      "display": "[\"Use a compatible Python/native SymEngine build. Symbolic expansion does not require LLVM; optional numerical callback backends have separate NumPy/build prerequisites. No symbolic engine was imported or evaluated here.\"]",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Library name, pysmt",
      "display": "pySMT",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Monthly downloads, pysmt",
      "display": "47.9K",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "License, pysmt",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Package release, pysmt",
      "display": "0.9.6",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Package release date, pysmt",
      "display": "Jun 2024",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Install, pysmt",
      "display": "pip install pysmt",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Quickstart, pysmt",
      "display": "from pysmt.shortcuts import Symbol, Int, Plus, simplify\nfrom pysmt.typing import INT\n\nx = Symbol('x', INT)\nexpression = simplify(Plus(x, Int(0)))\n",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Official description, pysmt",
      "display": "Manipulates and solves SMT formulas across solvers.",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Quickstart source file, pysmt",
      "display": "pysmt/shortcuts.py",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Repository stars, pysmt",
      "display": "641",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Symbolic derivative expressions, pysmt",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Symbolic antiderivatives, pysmt",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "DCP rule checks, pysmt",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Bit-vector SMT queries, pysmt",
      "display": "Via plugin",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Native expression role, pysmt",
      "display": "Solver-agnostic typed formula ASTs, rewriting, and SMT backend integration; not a general calculus frontend.",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "First-call requirements, pysmt",
      "display": "[\"Exact current0.9.6 frontend API. This constructs and simplifies an integer formula without requesting a solver. Actual SMT queries require a separately installed compatible backend; do not imply the basic pip install supplies every solver.\"]",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project function, pysmt",
      "display": "def overlaps(i,j):\n    \"\"\"\n    Returns True if two instructions i,j overlap in their encoding.\n\n    TODO: Add operand constraints into the solver formula.\n    \"\"\"\n    if(i.pseudo or j.pseudo):\n        return False\n    ILEN=32\n\n    instr   = Symbol(\"instr\"    , BVType(width=ILEN))\n    imask   = Symbol(\"imask\"    , BVType(width=ILEN))\n    imatch  = Symbol(\"imatch\"   , BVType(width=ILEN))\n    jmask   = Symbol(\"jmask\"    , BVType(width=ILEN))\n    jmatch  = Symbol(\"jmatch\"   , BVType(width=ILEN))\n\n    domains = And([\n        EQ(imask , BV(i.mask() ,width=ILEN)),\n        EQ(imatch, BV(i.match(),width=ILEN)),\n        EQ(jmask , BV(j.mask() ,width=ILEN)),\n        EQ(jmatch, BV(j.match(),width=ILEN))\n    ])\n\n    problem = And([\n        EQ(instr & imask, imatch),\n        EQ(instr & jmask, jmatch)\n    ])\n\n    formula = And(domains, problem)\n\n    return is_sat(formula)\n",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project source file, pysmt",
      "display": "bin/better_parse_opcodes.py",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project full_name, pysmt",
      "display": "riscv/riscv-crypto",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Project stargazers_count, pysmt",
      "display": "413",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Python symbolic math libraries SymPy SymEngine CasADi Pymbolic code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
