Message Boards Message Boards

NSolve with conditions on complex solutions

Posted 4 years ago

I'm trying to solve a system of coupled equations where the results are expected to be complex. The problem is that I want only the solutions that fall in range [-i,i], when I put this condition, I got error about invalid comparison of complexes. Is there any way to put this condition on the obtained solutions.

Attachments:
POSTED BY: Mariam Tohari
4 Replies
Posted 4 years ago

The problem is solved. Thanks for your help

POSTED BY: Mariam Tohari
Posted 4 years ago

I tried to define the conditions as -1<Re[]<1 , -1<Im[]<1 but I got this error NSolve::precbd: Requested precision [DoubleStruckCapitalC] is not a machine-sized real number between $MinPrecision and $MaxPrecision.

POSTED BY: Mariam Tohari
Posted 4 years ago

I meant the real and imaginary parts should be ranged between -1 and 1

POSTED BY: Mariam Tohari

What do you mean by "range [-i,i]"? Is that the segment between the points -i and i in the complex plane? Then the conditions should be Re[variable]==0&&-1<=Im[variable]<=1.

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