author | Puneeth Chaganti <punchagan@fossee.in> |
Fri, 27 May 2011 14:24:59 +0530 | |
changeset 0 | 0efde00f9229 |
permissions | -rw-r--r-- |
0 | 1 |
#!/usr/bin/python |
2 |
## 2.2 |
|
3 |
||
4 |
import scipy as sp |
|
5 |
from scipy import linalg |
|
6 |
||
7 |
F=sp.array([[-1,0],[1,0]]) |
|
8 |
print linalg.expm(F) |
|
9 |
||
10 |
# """ |
|
11 |
# 1. linalg.expm computes the matrix exponential using Pade approximation. |
|
12 |
# 2. linalg.expm2 computes the matrix exponential using eigenvalue decomposition. |
|
13 |
# 3. linalg.expm3 computes the matrix exponential using Taylor series. |
|
14 |
# """ |
|
15 |
||
16 |