We collect some functions of numerical analysis. The algorithms in this section are not the best known and are not recommended for serious use. We refer the reader to the book ``Numerical Recipes in C: The Art of Scientific Computing'' by B.P. Flannery, W.H. Press, S.A. Teukolsky, and W.T. Vetterling, Cambridge University Press for better algorithms.
The functions in this section become available by including numerical_analysis.h.
double | binary_entropy(double x) | returns the binary entropy of x, i.e.,
- x*log x - (1 - x)*log(1 - x).
Precondition 0 < = x < = 1. |