Python 3.5.1 |Anaconda 2.5.0 (64-bit)| (default, Jan 29 2016, 15:01:46) [MSC v.1900 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
IPython 4.0.3 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
In [1]: from sympy import *
In [2]: init_session()
IPython console for SymPy 1.0 (Python 3.5.1-64-bit) (ground types: python)
These commands were executed:
>>> from __future__ import division
>>> from sympy import *
>>> x, y, z, t = symbols('x y z t')
>>> k, m, n = symbols('k m n', integer=True)
>>> f, g, h = symbols('f g h', cls=Function)
>>> init_printing()
In [3]: theta = symbols('theta', real=True)
In [4]: simplify(+I/2*exp(I*theta) - I/2*exp(-I*theta))
Out[4]: -sin(theta)
In [5]: simplify(-I/2*exp(I*theta) + I/2*exp(-I*theta))
Out[5]:
/ 2*I*theta \ -I*theta
I*\- e + 1/*e
------------------------------
2