ADS square root of matrix

Status
Not open for further replies.

happsky

Advanced Member level 4
Joined
Jun 6, 2011
Messages
101
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Visit site
Activity points
1,932
For example, How to know B in equation: A=B*B, (both A and B are matrixs.)

Thank you very much!
 

Hi Happsky

You can easily use MATLAB to calculate your problem.
for example

A = [1 2 3;4 5 6;7 8 9]

A =

1 2 3
4 5 6
7 8 9

>> B = A^0.5

B =

0.4498 + 0.7623i 0.5526 + 0.2068i 0.6555 - 0.3487i
1.0185 + 0.0842i 1.2515 + 0.0228i 1.4844 - 0.0385i
1.5873 - 0.5940i 1.9503 - 0.1611i 2.3134 + 0.2717i

>> C = B*B

C =

1.0000 - 0.0000i 2.0000 3.0000
4.0000 + 0.0000i 5.0000 + 0.0000i 6.0000 + 0.0000i
7.0000 + 0.0000i 8.0000 9.0000 - 0.0000i

sqrt(sum((A - C).^2))

ans =

1.0e-014 *

0.2388 - 0.0114i 0.3689 - 0.0020i 0.3101

Good luck
 

It is not easy import the data from ads to matlab,when the data is complex.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…