Message Boards Message Boards

0
|
5224 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Assuming[ci != 0, Sign[ci]^2==1]

Posted 9 years ago

May be I am wrong, but I thing that correct result should be True.

Am I making a mistake, or not?

In[2]:=  Assuming[ci != 0, (Sign[ci]^2 == 1) // FullSimplify]

Out[2]= Sign[ci]^2 == 1

Thanks!

POSTED BY: Tomáš Hruš
2 Replies
Posted 9 years ago

Thank you, Sean.

It was my mistake, I tried Assuming[ci >0 and also Assuming[ci <0 and I didn't noticed, that this implicitly means, that ci is real, but ci != 0 doesnt mean, that ci should be real.

Assuming[{ci != 0 && ci \[Element] Reals}, Sign[ci]^2 == 1 // FullSimplify]

works as expected.

POSTED BY: Tomáš Hruš

Mathematica thinks with complex numbers and the identity is not true with complex numbers.

Assuming[ci != 0 && Element[ci, Reals], (Sign[ci]^2 == 1) // 
  FullSimplify]
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract