An easy Problem

问题描述 :

We define eA as following:
Draw
Where A is a n×n symmetric matrix with real elements, I is an identity matrix.
Give you matrix A, your task is to calculate eA.
输入:

There are several test cases;
Each test case begin with a line contains an integer n (1≤n≤100), the following n lines contain n×n symmetric matrix A. The rang of elements of A is (-100,100);
n=0 is the end of input and need not to proceed.
输出:

There are several test cases;
Each test case begin with a line contains an integer n (1≤n≤100), the following n lines contain n×n symmetric matrix A. The rang of elements of A is (-100,100);
n=0 is the end of input and need not to proceed.
样例输入:

1
2
2
1 0
0 1
0
样例输出:

7.39
2.72 0.00
0.00 2.72

http://xueshu.baidu.com/s?wd=paperuri:(b7c26dd008d96016f4f86dd3ef4ec957)&filter=sc_long_sign&sc_ks_para=q%3DA+real+symmetric+tridiagonal+matrix+with+a+given+characteristic+polynomial&tn=SE_baiduxueshu_c1gjeupa&ie=utf-8&sc_us=8337097424013682942