Skip to content

Commit f7eb5da

Browse files
committed
sympy
1 parent ce42ea8 commit f7eb5da

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

SymPy/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__author__ = "Minux"
2+
"""
3+
Only for Learn, No Commercial
4+
"""

SymPy/sympy_0.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"""
2+
Program could be runned in isympy context for interacrtive
3+
4+
展开 e^(i*x)
5+
"""
6+
from __future__ import division
7+
from sympy import *
8+
x, y, z, t = symbols('x y z t')
9+
k, m, n = symbols('k m n', integer=True)
10+
f, g, h = symbols('f g h', cls=Function)
11+
init_printing()
12+
13+
def Expand_E():
14+
return expand(E**(I*x), complex = True)
15+
16+
def main():
17+
ex_num = Expand_E()
18+
print(ex_num)
19+
20+
if __name__ == "__main__":
21+
main()

0 commit comments

Comments
 (0)