Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bjodah/sym
Unified interface to symbolic manipulation libraries in Python
https://github.com/bjodah/sym
symbolic-manipulation wrapper
Last synced: about 1 month ago
JSON representation
Unified interface to symbolic manipulation libraries in Python
- Host: GitHub
- URL: https://github.com/bjodah/sym
- Owner: bjodah
- License: bsd-2-clause
- Created: 2016-02-02T08:18:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T08:32:05.000Z (5 months ago)
- Last Synced: 2024-04-25T09:38:11.642Z (5 months ago)
- Topics: symbolic-manipulation, wrapper
- Language: Python
- Size: 6.29 MB
- Stars: 8
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
sym
===
.. image:: http://hera.physchem.kth.se:9090/api/badges/bjodah/sym/status.svg
:target: http://hera.physchem.kth.se:9090/bjodah/sym
:alt: Build status
.. image:: https://circleci.com/gh/bjodah/sym.svg?style=svg
:target: https://circleci.com/gh/bjodah/sym
:alt: Build status on CircleCI
.. image:: https://secure.travis-ci.org/bjodah/sym.svg?branch=master
:target: http://travis-ci.org/bjodah/sym
:alt: Build status on Travis-CI
.. image:: https://img.shields.io/pypi/v/sym.svg
:target: https://pypi.python.org/pypi/sym
:alt: PyPI version
.. image:: https://img.shields.io/badge/python-2.7,3.5,3.6-blue.svg
:target: https://www.python.org/
:alt: Python version
.. image:: https://img.shields.io/pypi/l/sym.svg
:target: https://github.com/bjodah/sym/blob/master/LICENSE
:alt: License
.. image:: http://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat
:target: http://hera.physchem.kth.se/~sym/benchmarks
:alt: airspeedvelocity
.. image:: http://hera.physchem.kth.se/~sym/branches/master/htmlcov/coverage.svg
:target: http://hera.physchem.kth.se/~sym/branches/master/htmlcov
:alt: coverage``sym`` provides a unified wrapper to some
symbolic manipulation libraries in Python. It makes it easy for library authors
to test their packages against several symbolic manipulation libraries.Currently the following Python pacakges are available as "backends":
- `SymPy `_
- `SymEngine `_
- `PySym `_
- `SymCXX `_
- `Diofant `_The capabilities exposed here are those needed by
- `pyodesys `_
- `pyneqsys `_and include:
- Differentiation
- Numerical evaluation (including "lambdify" support)see `tests `_ for examples.
Note that ``pyodesys`` and ``pyneqsys`` also act as test suits for this package.Documentation
-------------
Auto-generated API documentation for the latest stable release is found here:
``_
(and the development version for the current master branch is found here:
``_).Installation
------------
Simplest way to install sym and its (optional) dependencies is to use pip:::
$ pip install --user sym pytest
$ python -m pytest --pyargs symor the `conda package manager `_:
::
$ conda install -c bjodah sym pytest
$ python -m pytest --pyargs symSource distribution is available here:
``_Example
-------
Differentiation.. code:: python
>>> from sym import Backend
>>> be = Backend('pysym') # just an example, use SymPy rather than pysym
>>> x, y = map(be.Symbol, 'x y'.split())
>>> expr = x*y**2 - be.tan(2*x)
>>> print(expr.diff(x))
((y**2) - ((1 + (tan((2*x))**2))*2))for more examples, see `examples/ `_, and rendered jupyter notebooks here:
``_License
-------
The source code is Open Source and is released under the simplified 2-clause BSD license. See `LICENSE `_ for further details.
Contributors are welcome to suggest improvements at https://github.com/bjodah/symAuthor
------
Björn I. Dahlgren, contact:- gmail address: bjodah