Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6897
| From | Ray Koopman <koopman@sfu.ca> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Orthogonalize[expr] |
| Date | 2011-12-02 12:28 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbag9c$21i$1@smc.vnet.net> (permalink) |
| References | <jb7rok$j2b$1@smc.vnet.net> |
On Dec 1, 4:25 am, =E9=81=93 =E5=8E=9A <shlwell1...@gmail.com> wrote:
> Question: We diagonalize the matrix
>
> {{L^2*mw^2 + ml^2, a*mw*ml}, {a*mw*ml, r^2*mw^2 + ml^2}}
>
> where L, mw, ml, a and r are real numbers.
>
> As a result, the normalizing orthogonalizion base is
>
> {Cos[the],Sin[the]} and {-Sin[the],Cos[the]}
>
> where Tan[2*the]=2*a*ml/((L^2-r^2)*mw)
>
> But now in mathematica we do it as follows:
>
> In[1]:= Mat = {{L^2*mw^2 + ml^2, a*mw*ml}, {a*mw*ml, r^2*mw^2 + ml^2}}
>
> In[2]:= Orthogonalize[Eigenvectors[Mat]]
>
> The result is quite complicated with Abs[expr] and Conjugate[expr].
> How can we get the desired result?Can you help me?
If your matrix is {{p, r}, {r, q}} then {cos, sin}
for the minimum-absolute-angle rotation is proportional to
{ Sqrt[#^2 + r^2] + Abs@#, If[Negative@#, -r, r] }& [.5(p - q)]
If you don't know the sign of p-q then how do you expect to
avoid testing it and adjusting for it?
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Orthogonalize[expr] 道 厚 <shlwell1988@gmail.com> - 2011-12-01 12:25 +0000 Re: Orthogonalize[expr] Ray Koopman <koopman@sfu.ca> - 2011-12-02 12:28 +0000
csiph-web