fmin function accepts a range and a function pointer, and finds out the input on that range which gives out the minimal output.
This is an almost one-to-one translation of the Java version (Fmin.java, yes, from 1998.) which itself is translated from the FORTRAN version.
It's pretty meaningless I know (and if you don't:
from scipy.optimize import minimize_scalar
does exactly that), but
why not.
Original Fmin.java copyright claim:
Fmin.java copyright claim:
This software is based on the public domain fmin routine.
The FORTRAN version can be found at
www.netlib.org
This software was translated from the FORTRAN version
to Java by a US government employee on official time.
Thus this software is also in the public domain.
The translator's mail address is:
Steve Verrill
USDA Forest Products Laboratory
1 Gifford Pinchot Drive
Madison, Wisconsin
53705
The translator's e-mail address is:
steve@www1.fpl.fs.fed.us
***********************************************************************
DISCLAIMER OF WARRANTIES:
THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
THE TRANSLATOR DOES NOT WARRANT, GUARANTEE OR MAKE ANY REPRESENTATIONS
REGARDING THE SOFTWARE OR DOCUMENTATION IN TERMS OF THEIR CORRECTNESS,
RELIABILITY, CURRENTNESS, OR OTHERWISE. THE ENTIRE RISK AS TO
THE RESULTS AND PERFORMANCE OF THE SOFTWARE IS ASSUMED BY YOU.
IN NO CASE WILL ANY PARTY INVOLVED WITH THE CREATION OR DISTRIBUTION
OF THE SOFTWARE BE LIABLE FOR ANY DAMAGE THAT MAY RESULT FROM THE USE
OF THIS SOFTWARE.
Sorry about that.
***********************************************************************
History:
Date Translator Changes
3/24/98 Steve Verrill Translated