Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.8K Views
|
4 Replies
|
3 Total Likes
View groups...
Share
Share this post:

FullSimplify doesn't work as expected?

Posted 3 years ago

I tried with the following code snippet:

up[\[Theta]_, \[CurlyPhi]] = {Cos[\[Theta]/2], 
   E^(I*\[CurlyPhi])*Sin[\[Theta]/2]};
dn[\[Theta]_, \[CurlyPhi]] = {-E^(-I*\[CurlyPhi])*Sin[\[Theta]/2], 
   Cos[\[Theta]/2]};
 A = {up[\[Theta], \[CurlyPhi]], dn[\[Theta], \[CurlyPhi]]};
FullSimplify[ComplexExpand[ConjugateTranspose[A] . A ]] == 
 IdentityMatrix[2]
ConjugateTranspose[A] . A // ComplexExpand // 
 FullSimplify == IdentityMatrix[2]

The result is as follows:

enter image description here

Why doesn't the last command work?

Regards, Hongyi

POSTED BY: Hongyi Zhao
4 Replies
Posted 3 years ago

But it's also cumbersome for practical use.

POSTED BY: Hongyi Zhao
Posted 3 years ago

But I don't want to type the () each time. It seems that the only shortcut is like this:

IdentityMatrix[2] == ConjugateTranspose[A] . A // 
  ComplexExpand // FullSimplify
POSTED BY: Hongyi Zhao

Infix operator precedence matters. That's the real reason parentheses were invented (little-known fact).

POSTED BY: Daniel Lichtblau

Try:

 (ConjugateTranspose[A] . A // ComplexExpand // FullSimplify) == IdentityMatrix[2]
POSTED BY: Mariusz Iwaniuk
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard