Message Boards Message Boards

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

How to set variables to be real ?

Posted 10 years ago

Hello, I want to set [Rho] and [Phi] to be real variables. Please tell me a suggestion ?
Thanks, Yoshihiro Sato

enter image description here

POSTED BY: Yoshihiro Sato
2 Replies

Simply evaluating Element[\[Rho], Reals] does not make it into an assumption for Simplify. You can use $Assumptions = {\[Rho] > 0 && -Pi < \[Phi] < Pi} to make global assumptions. Also, the assumption that rho is real is not enough to simplify the Abs to rho. You need to assume that rho is >0. Also, the Arg simplifies if you assume that phi is between -Pi and Pi:

FullSimplify[
 Arg[\[Rho] Exp[I*\[Phi]]], \[Rho] > 0 && -Pi < \[Phi] < Pi]
POSTED BY: Gianluca Gorni
Posted 10 years ago

I understand your answer.
Thanks.

POSTED BY: Yoshihiro Sato
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