repo.or.cz
/
sympy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Start of the 0.5.12 development cycle
[sympy.git]
/
examples
/
expansion.py
blob
1e56a2930a799b2ab887d4a2412b8248e3b7203c
1
#!/usr/bin/env python
2
import
iam_sympy_example
3
4
import
sympy
5
a
=
sympy
.
Symbol
(
'a'
)
6
b
=
sympy
.
Symbol
(
'b'
)
7
e
=(
a
+
b
)**
5
8
print
e
9
print
e
.
expand
()