Mathematica 10.1 has a new function MinMax. It is absent in the current CDF Player 10.0.2. CDF files that use MinMax leave the function unevaluated, and thereby produce errors. One approach would be to rename the function in my own code, avoiding the problem. But I have been using a function of that name for many years, and it is deeply embedded in my libraries. Is there a workaround to this problem, other than waiting for Wolfram to update CDF Player to compatibility with 10.1? Here is a simple example for testing:
test = Manipulate[MinMax[{a, b}], {a, 0, 1}, {b, 0, 1}]
Export["test.cdf", test]
But I have been using a function of that name for many years
That is one of the reason why one should not define user level functions that starts with UpperCase ! $\endgroup$MinMax
in CDF player, or how to avoid conflict between your own and the builtinMinMax
? $\endgroup$MinMax
is doing the same thing as the new 10.1MinMax
you could define it only for the older version, or probably more correctly if it isn't defined already. If they do different things, you'll need to rename yourMinMax
and Nassers comment fully applies... $\endgroup$$VersionNumber
and$ReleaseNumber
or, and I think that would be the better solution by checking if the symbol already exists usingNameQ
:If[Not@NameQ["MinMax"],(*define it...*)];
$\endgroup$