improving docs in limits2
[sympy.git] / examples / print_pretty.py
blobc7ba98090619aca534a0d990e7f091a9e947ffa4
1 import sys
2 sys.path.append("..")
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,10) )
35 print '\n'