I had the need for a simple function to return both the maximum value of an expensive function and the argument for which this maximum was achieved. import operator def func(x): return (10 - x) * x ...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results