# MinMax function (Mathematica v10.1.0) conflicts with NDSolveFEMMinMax?

Bug introduced in 10.1.0 and fixed in 10.2.0

Some problem in v10.1.0 (Windows 8.1 x64) and the new MinMax...

MinMax[{0.2, 0.375, 0.55, 0.7250000000000001, 0.9000000000000001,
1., 0.2, 0.9, 1}]


{0.2, 1.}

Now

Needs["NDSolveFEM"]
MinMax[{0.2, 0.375, 0.55, 0.7250000000000001, 0.9000000000000001,
1., 0.2, 0.9, 1}]


MinMax[{0.2, 0.375, 0.55, 0.725, 0.9, 1., 0.2, 0.9, 1}]

This happens because NDSolve FEM MinMax shadows the newly added System MinMax and because NDSolve FEM MinMax doesn't supports mixed Integer and Real arguments.

Of course, it's better to be specific always:

SystemMinMax[{0.2, 0.375, 0.55, 0.7250000000000001,
0.9000000000000001, 1., 0.2, 0.9, 1}]


{0.2, 1.}

# UPDATE

Hello,

Thank you for contacting Wolfram Technical Support. The mentioned conflict is a known issue and our developers are aware of it. I have added your contact information to the existing report so you can be notified when this is resolved. Thank you once again for taking the time and bringing this to our attention. Sincerely,

[...]

Wolfram Technical Support Wolfram Research http://www.wolfram.com/support/

• The "bug" is that there is no shadowing warning when the NDSolveFEM package is loaded. Then the user would know to use the full name. – Bob Hanlon Apr 14 '15 at 14:43
• I hope we can do better in some near future instead of prepending System to every MinMax call. – unlikely Apr 14 '15 at 15:16
• Have you reported this? – Kuba Apr 15 '15 at 7:16
• As a more convenient workaround, you could put NDSolveFEM  after System  in $ContextPath. For example Needs["NDSolveFEM"];$ContextPath = RotateLeft[\$ContextPath] is an easy way. Of course it gives the FEM functions the lowest priority, but maybe that's ok. – Michael E2 Apr 15 '15 at 13:49
• This is a bug and fixed in the development version. Thanks. – user21 May 6 '15 at 19:56

As mentioned by user21 in the comments, this is now fixed in version 10.2.

In[1]:= MinMax[{0.2, 0.375, 0.55, 0.7250000000000001, 0.9000000000000001,
1., 0.2, 0.9, 1}]

Out[1]= {0.2, 1.}

In[2]:= Needs["NDSolveFEM"]

In[3]:= MinMax[{0.2, 0.375, 0.55, 0.7250000000000001, 0.9000000000000001,
1., 0.2, 0.9, 1}]

Out[3]= {0.2, 1.}
`