Typically, this can be ignored, the Chop command can be used, or it simply does not cause problems. However, I keep getting an error: [cid:image0...@01CC4BBC.E87A0F30]
NIntegrate::nlim: "t = Y[1.] is not a valid limit of integration."
Y is an array with the parameters to be minimized.
However, if evaluate the objective function to be minimized using replacement rules I get
x + 0.i.
Is there a way for me tell Mathematica to always treat 0.i as 0 and drop it? It seems to be causing problems in the FindMinimum call.
Thanks,
Eli
Re[3 + 2 I]
It sounds like the "0 I" is in fact a roundoff error times I, such as
10^-18 I. This problem is what Chop[] used for.
Chop[x+0 I] will yield x, if roundoff error is in fact the problem. One
can tell Chop[] what threshold to use.
Joe Gwinn