Message Boards Message Boards

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

Minimize and complex numbers

Posted 9 years ago
POSTED BY: Kris Brumbaugh
4 Replies
Posted 9 years ago

Thanks for the replies, the problem was on my end with the independent variable definition.

POSTED BY: Kris Brumbaugh

Direct manipulation

In[7]:= ((-0.800188 + 0. I) + scatter)^2 /. Complex[x_, __] -> x

Out[7]= (-0.800188 + scatter)^2
POSTED BY: Udo Krause
Posted 9 years ago

Try Chop. It replaces approximate real numbers close to zero with integer 0.

POSTED BY: David Keith

Perhaps the round-off errors introduce small imaginary parts in the function to minimize. Have you tried with Abs instead of multiplying by the conjugate?

POSTED BY: Gianluca Gorni
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