Sam Steingold on Thu, 03 Jun 2010 21:21:12 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

gsqrt on matrices


is gsqrt supposed to work on matrices?
? [2,1;1,2]*[2,1;1,2]
%1 =
[5 4]

[4 5]

? sqrt(%1)
%2 =
[2.2360679774997896964091736687312762354 2.0000000000000000000000000000000000000]

[2.0000000000000000000000000000000000000 2.2360679774997896964091736687312762354]

? %2*%2
%3 =
[9.0000000000000000000000000000000000000 8.9442719099991587856366946749251049417]

[8.9442719099991587856366946749251049417 9.0000000000000000000000000000000000000]

?