Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6877 > unrolled thread

Orthogonalize[expr]

Started by道 厚 <shlwell1988@gmail.com>
First post2011-12-01 12:25 +0000
Last post2011-12-02 12:28 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  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

#6877 — Orthogonalize[expr]

From道 厚 <shlwell1988@gmail.com>
Date2011-12-01 12:25 +0000
SubjectOrthogonalize[expr]
Message-ID<jb7rok$j2b$1@smc.vnet.net>
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?

[toc] | [next] | [standalone]


#6897

FromRay Koopman <koopman@sfu.ca>
Date2011-12-02 12:28 +0000
Message-ID<jbag9c$21i$1@smc.vnet.net>
In reply to#6877
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?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web