Theoretica
A C++ numerical and automatic mathematical library
Loading...
Searching...
No Matches
extrema.h File Reference

Extrema approximation of real functions. More...

#include "../core/constants.h"
#include "./roots.h"

Go to the source code of this file.

Namespaces

namespace  theoretica
 Main namespace of the library which contains all functions and objects.
 

Functions

template<typename RealFunction >
real theoretica::maximize_goldensection (RealFunction f, real a, real b)
 Approximate a function maximum using the Golden Section search algorithm.
 
template<typename RealFunction >
real theoretica::minimize_goldensection (RealFunction f, real a, real b)
 Approximate a function minimum using the Golden Section search algorithm.
 
template<typename RealFunction >
real theoretica::maximize_newton (RealFunction f, RealFunction Df, RealFunction D2f, real guess=0)
 Approximate a function maximum given the function and the first two derivatives using Newton-Raphson's method to find a root of the derivative.
 
template<typename RealFunction >
real theoretica::minimize_newton (RealFunction f, RealFunction Df, RealFunction D2f, real guess=0)
 Approximate a function minimum given the function and the first two derivatives using Newton-Raphson's method to find a root of the derivative.
 
template<typename RealFunction >
real theoretica::maximize_bisection (RealFunction f, RealFunction Df, real a, real b)
 Approximate a function maximum inside an interval given the function and its first derivative using bisection on the derivative.
 
template<typename RealFunction >
real theoretica::minimize_bisection (RealFunction f, RealFunction Df, real a, real b)
 Approximate a function minimum inside an interval given the function and its first derivative using bisection on the derivative.
 

Detailed Description

Extrema approximation of real functions.