PyCon India 2017 Proposal

Shekhar Prasad Rajak edited this page Aug 6, 2017 · 1 revision

SymPy, Symengine and it's wrapper for different programming languages as computer aided algebra system (CAS)


SymPy is a pure Python library for symbolic mathematics. It aims to become a full-featured computer algebra system (CAS) while keeping the code as simple as possible in order to be comprehensible and easily extensible. SymPy is written entirely in Python and does not require any external libraries.

This tutorial is intended to cover the basics as well as touch on more advanced topics. We will start by showing how to install and configure this Python module. Then we will proceed to the basics of constructing and manipulating mathematical expressions in SymPy. We will also discuss the most common issues and differences from other computer algebra systems, and how to deal with them. In the remaining part of this tutorial we will show how to solve mathematical problems with SymPy.

This knowledge should be enough for attendees to start using SymPy for solving mathematical problems and hacking SymPy's internals (though hacking core modules may require additional expertise).

SymEngine is a standalone fast C++ symbolic manipulation library. Optional thin wrappers allow usage of the library from other languages (Python, Ruby, Julia, Haskell).

The workshop will also include a hands-on introduction to SymEngine in Python for the advantages of speed while using SymPy. This section would focus heavily on SymEngine's Python wrapper called, and the various methodologies employed by it, the use of Cython, an account of the modules currently supporting the use of SymEngine, the subsequent impact on performance and the major projects using SymEngine. In addition to the above, there will also be a light introduction towards installation and usage of SymEngine library in Ruby, Haskell and Julia, through their respective wrappers.

    What is Symbolic Computation?
    A More Interesting Example
   The Power of Symbolic Computation
   Why SymPy?
    Equals signs
    Two Final Notes: ^ and /
Basic Operations
    Converting Strings to SymPy Expressions
    Setting up Pretty Printing
    Printing Functions
    Polynomial/Rational Function Simplification
    Trigonometric Simplification
    Exponentials and logarithms
    Special Functions
    Series Expansion
    Finite differences
   A Note about Equations
   Solving Equations Algebraically
   Solving Differential Equations
   Basic Operations
   Basic Methods
   Matrix Constructors
   Advanced Methods
Advanced Expression Manipulation
   Understanding Expression Trees
   Recursing through an Expression Tree

And some similar basic examples for SymEngine and on it's wrappers.


We expect attendees of this tutorial to have basic knowledge of Python, C++, Ruby, Julia and mathematics. However, many more advanced topics for SymPy will be explained during presentation and basic examples for SymEngine wrappers. No prior knowledge of SymPy or other Python libraries is required, although it is suggested that attendees be familiar with the IPython notebook.

We recommend that the attendees install the Anaconda Python distribution which includes SymPy, NumPy, and IPython. Once Anaconda is installed simply type the following in a terminal to install the necessary packages:

$ conda install numpy ipython-notebook sympy

Other alternative installation instructions can be found here:

SymEngine and its Python wrapper can be installed directly through:

$ conda install -c conda-forge python-symengine

Other alternative installation instructions can be found at:

Content urls

SymPy team has developed and delivered many talks and tutorials at SciPy and other conferences.

The website for the workshop at PyCon India 2017 is here (You can find the introduction slides, the sphinx tutorial, and The exercises in form of IPython notebooks in the website navbar).

Note: that the notebooks are hosted statically, you can download from the repo and run locally to have an interactive session.

Speaker info

SymPy India developers will be conducting the workshop:

  • Amit Kumar, Core Developer & GSoC-cer at SymPy
  • Shekhar Prasad Rajak : NIT Warangal | Core Developer at SymPy GSoC 2016 | Solvers, Sets
  • Shikhar Jaiswal : IIT Patna | Student Developer at SymPy GSoC 2017 | SymPy - SymEngine Integration and Python Wrappers
  • Ranjith Kumar : IIT Kharagpur | Student Developer at SymPy GSoC 2017 | Solvers and Sets in SymEngine

Speaker links:

Workshop resource website:

Resource repository:

SymPy website:

SymPy live:

GitHub repository: ,

Links to previous tutorials/talks

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.