ecl::FunctionMath< LinearFunction > Class Reference

Specialises the function math loader for linear functions. More...

`#include <polynomial.hpp>`

## Public Member Functions

FunctionMath ()

virtual ~FunctionMath ()
Default constructor. More...

## Static Public Member Functions

static CartesianPoint2d Intersection (const LinearFunction &f, const LinearFunction &g)
Redirections intersection operator for linear functions. More...

static double Maximum (const double &x_begin, const double &x_end, const LinearFunction &function)
Redirections the maximum operator for linear functions. More...

static double Minimum (const double &x_begin, const double &x_end, const LinearFunction &function)
Redirections the minimum operator for linear functions. More...

static Array< double > Roots (const LinearFunction &function)
Root of the linear function. More...

## Detailed Description

Specialises the function math loader for linear functions.

This lets you use the functions directly from within the class, e.g.

` LinearFunction f = LinearFunction::Interpolation(0.0,0.0,1.0,2.0); LinearFunction g = LinearFunction::Interpolation(0.0,2.0,1.0,0.0); CartsianPoint2d point = LinearFunction::Intersection(f,g); `

Definition at line 1238 of file polynomial.hpp.

## ◆ FunctionMath()

 ecl::FunctionMath< LinearFunction >::FunctionMath ( )
inline

Definition at line 1242 of file polynomial.hpp.

## ◆ ~FunctionMath()

 virtual ecl::FunctionMath< LinearFunction >::~FunctionMath ( )
inlinevirtual

Default constructor.

Definition at line 1243 of file polynomial.hpp.

## ◆ Intersection()

 static CartesianPoint2d ecl::FunctionMath< LinearFunction >::Intersection ( const LinearFunction & f, const LinearFunction & g )
inlinestatic

Redirections intersection operator for linear functions.

Intersection<LinearFunction>

Definition at line 1249 of file polynomial.hpp.

## ◆ Maximum()

 static double ecl::FunctionMath< LinearFunction >::Maximum ( const double & x_begin, const double & x_end, const LinearFunction & function )
inlinestatic

Redirections the maximum operator for linear functions.

Maximum<LinearFunction>

Definition at line 1280 of file polynomial.hpp.

## ◆ Minimum()

 static double ecl::FunctionMath< LinearFunction >::Minimum ( const double & x_begin, const double & x_end, const LinearFunction & function )
inlinestatic

Redirections the minimum operator for linear functions.

Minimum<LinearFunction>

Definition at line 1272 of file polynomial.hpp.

## ◆ Roots()

 static Array ecl::FunctionMath< LinearFunction >::Roots ( const LinearFunction & function )
inlinestatic

Root of the linear function.