sym

Unified interface to symbolic manipulation libraries in Python

https://github.com/bjodah/sym

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.8%) to scientific vocabulary

Keywords

symbolic-manipulation wrapper

Keywords from Contributors

ordinary-differential-equations sde computer-algebra
Last synced: 6 months ago · JSON representation

Repository

Unified interface to symbolic manipulation libraries in Python

Basic Info
  • Host: GitHub
  • Owner: bjodah
  • License: bsd-2-clause
  • Language: Python
  • Default Branch: master
  • Size: 6.32 MB
Statistics
  • Stars: 9
  • Watchers: 3
  • Forks: 0
  • Open Issues: 3
  • Releases: 17
Topics
symbolic-manipulation wrapper
Created about 10 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License Authors

README.rst

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 sym

or the `conda package manager `_:

::

   $ conda install -c bjodah sym pytest
   $ python -m pytest --pyargs sym

Source 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/sym

Author
------
Björn I. Dahlgren, contact:

- gmail address: bjodah

Owner

  • Name: Bjorn
  • Login: bjodah
  • Kind: user

GitHub Events

Total
  • Release event: 2
  • Watch event: 1
  • Push event: 29
  • Pull request event: 2
  • Create event: 1
Last Year
  • Release event: 2
  • Watch event: 1
  • Push event: 29
  • Pull request event: 2
  • Create event: 1

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 105
  • Total Committers: 3
  • Avg Commits per committer: 35.0
  • Development Distribution Score (DDS): 0.105
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Björn Dahlgren b****h@g****m 94
spcornelius s****s@g****m 8
Sergey B Kirpichev s****v@g****m 3

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 27
  • Average time to close issues: N/A
  • Average time to close pull requests: about 2 months
  • Total issue authors: 1
  • Total pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.7
  • Merged pull requests: 23
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • bjodah (1)
Pull Request Authors
  • bjodah (23)
  • spcornelius (2)
  • skirpichev (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 14,629 last-month
  • Total dependent packages: 4
    (may contain duplicates)
  • Total dependent repositories: 16
    (may contain duplicates)
  • Total versions: 20
  • Total maintainers: 1
pypi.org: sym

Unified wrapper for symbolic manipulation libraries in Python.

  • Versions: 18
  • Dependent Packages: 1
  • Dependent Repositories: 13
  • Downloads: 14,629 Last month
Rankings
Downloads: 3.6%
Dependent repos count: 4.0%
Dependent packages count: 4.8%
Average: 12.3%
Stargazers count: 19.4%
Forks count: 29.8%
Maintainers (1)
Last synced: 6 months ago
conda-forge.org: sym
  • Versions: 2
  • Dependent Packages: 3
  • Dependent Repositories: 3
Rankings
Dependent packages count: 15.6%
Dependent repos count: 18.1%
Average: 39.3%
Stargazers count: 57.4%
Forks count: 66.1%
Last synced: 6 months ago

Dependencies

setup.py pypi
  • numpy *