I am having a very strange issue. I have the following piece of code:
ee = 0.685149/(1 - E^-l)
Plot[ee, {l, 1.8, 10}]
NMinimize[{ee, 1.8 <= l <= 10}, l]
As can be seen from the plot, the function is decreasing and is minimized at $l=10$. Mathematica indeed finds the correct minimizer, but the value is negated:
{-0.685181, {l -> 10.}}
I am very confused why the value is negated. Any idea?
ee /. l -> 10
0.685181
Version: "13.1.0 for Mac OS X x86 (64-bit) (June 16, 2022)"
Method -> NelderMead
to NMinimize, it works fine, so it seems "Automatic" is buggy somehow? $\endgroup$$Version
to your post. $\endgroup$