I wish to verify whether T'T - IdentityMatrix[2] is always positive definite for a certain choice of elements of T'T.
T'T = {{t11^2, t11*t12},{t11*t12, t12^2+t22^2}};
Now, I have written the following program to check my assumptions on t11 etc which are: t11^2 > 1 t22^2 > 1 and t12 completely free.
co = 0;
Do[{t11s = RandomReal[{1, 10^12}],
If[RandomReal[{0, 1}] >= 0.5, t11 = Sqrt[t11s], t11 = -Sqrt[t11s]],
t22s = RandomReal[{1, 10^12}],
If[RandomReal[{0, 1}] >= 0.5, t22 = Sqrt[t22s], t22 = -Sqrt[t22s]],
t12 = RandomReal[{-10^12, 10^12}],
ttm = {{t11s, t11*t12}, {t11*t12, t12^2 + t22s}},
If[Transpose[ve].(ttm-IdentityMatrix[2]).ve > 0, co++]}, {10^5}]
co
However, my program, based on random draws, generates odd results. For fixed ve as well as for random draws.
Thank you so much!
T'T
is a syntax error. Variable names cannot contain the'
character. $\endgroup$