Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is the best way to create a library on top of Sage?

I am interested in using Sage to create a library for control theory (similar to SymPy and Python Control) below: https://docs.sympy.org/latest/modules/physics/control/control.html

https://github.com/python-control/python-control

These libraries are great, but I want a library that has symbolic and numeric functionality. Therefore, I am considering using Sage to write the symbolic end and tie that with Python Control for the numeric end.

What is a good way to start creating this so that it can hopefully be integrated into the Sage build sometime in the future?

I came across someone with a similar idea before. They were using Sage to create a library for mechanics. The code is below. I notice that use a cas_utils.sage to hold their library. Then in notebooks like 061-Lagrange_bead_rotating_circle.ipynb, they load this library to use the features. Is this a good way to approach making a rough library based on Sage?

https://github.com/marcinofulus/Mechanics_with_SageMath