| 874 | |
| 875 | template <typename funct> |
| 876 | double find_max_single_variable ( |
| 877 | const funct& f, |
| 878 | double& starting_point, |
| 879 | const double begin = -1e200, |
| 880 | const double end = 1e200, |
| 881 | const double eps = 1e-3, |
| 882 | const long max_iter = 100, |
| 883 | const double initial_search_radius = 1 |
| 884 | ) |
| 885 | { |
| 886 | return -find_min_single_variable(negate_function(f), starting_point, begin, end, eps, max_iter, initial_search_radius); |
| 887 | } |
| 888 | |
| 889 | // ---------------------------------------------------------------------------------------- |
| 890 | |