Introduction to SymPy

In this section, we introduce some basic functionality of the SymPy (short from Symbolic Python) library. In contrast to numerical computation, in symbolic calculation we are processing and transforming generic variables.
The SymPy home page is http://sympy.org/, and provides the full (and up-to-date) documentation
for this library.
Symbolic calculation is very slow compared to oating point operation, and thus generally not for direct simulation. However, it is a powerful tool to support the preparation of code and symbolic work. Occasionally, we use symbolic operations in simulations to work out the most effcient numerical code, before that is executed.

If you’ve installed the Python (x,y) distribution you probably already have the Sympy but if not type in the following command in CMD if you’re working on the Windows operating system or Terminal if your using Linux operation system.
pip install sympy
If your using Anaconda distribution all you need to do is type in the CMD or Terminal is the following command.
conda install sympy
After installing is done open Python or Spyder which is GUI of Python and type in
import sympy
If the sympy is installed correctly then you shouldn’t get any error. 

Nema komentara:

Objavi komentar