Added a warning when constructing a Matrix without bracket + test modified
[sympy.git] / examples / print_pretty.py
blob1678a4b9ca3f83db26bf48888cbc82e9d00c1b8f
1 #!/usr/bin/env python
2 import iam_sympy_example
4 from sympy import *
6 x=Symbol("x")
7 y=Symbol("y")
10 pprint( x**x )
11 print '\n'# separate with two blank likes
13 pprint(x**2+y+x)
14 print '\n'
16 pprint(sin(x)**x)
17 print '\n'
19 pprint( sin(x)**cos(x) )
20 print '\n'
22 pprint( sin(x)/(cos(x)**2 * x**x +(2*y)) )
23 print '\n'
25 pprint( sin(x**2+exp(x)) )
26 print '\n'
28 pprint( sqrt(exp(x)) )
29 print '\n'
31 pprint( sqrt(sqrt(exp(x))) )
32 print '\n'
34 pprint( (1/cos(x)).series(x,0,10) )
35 print '\n'