Functions
vnl_real_polynomial.cxx File Reference

Evaluation of real polynomials - the implementation. More...

#include <iostream>
#include <complex>
#include "vnl_real_polynomial.h"

Go to the source code of this file.

Functions

template<class T >
vnl_real_polynomial_evaluate (double const *a, int n, T const &x)
 
vnl_real_polynomial operator+ (const vnl_real_polynomial &f1, const vnl_real_polynomial &f2)
 Returns sum of two polynomials f1(x)+f2(x). More...
 
vnl_real_polynomial operator- (const vnl_real_polynomial &f1, const vnl_real_polynomial &f2)
 Returns sum of two polynomials f1(x)-f2(x). More...
 
vnl_real_polynomial operator * (const vnl_real_polynomial &f1, const vnl_real_polynomial &f2)
 Returns polynomial which is product of two polynomials f1(x)*f2(x). More...
 
double vnl_rms_difference (const vnl_real_polynomial &f1, const vnl_real_polynomial &f2, double x1, double x2)
 Returns RMS difference between f1 and f2 over range [x1,x2]. More...
 

Detailed Description

Evaluation of real polynomials - the implementation.

Author
Andrew W. Fitzgibbon, Oxford RRG 23 Aug 96

Modifications IMS (Manchester) 14/03/2001: Added Manchester IO scheme

Definition in file vnl_real_polynomial.cxx.

Function Documentation

◆ operator *()

vnl_real_polynomial operator * ( const vnl_real_polynomial f1,
const vnl_real_polynomial f2 
)

Returns polynomial which is product of two polynomials f1(x)*f2(x).

Definition at line 141 of file vnl_real_polynomial.cxx.

◆ operator+()

VNL_EXPORT vnl_real_polynomial operator+ ( const vnl_real_polynomial f1,
const vnl_real_polynomial f2 
)

Returns sum of two polynomials f1(x)+f2(x).

Returns polynomial which is sum of two polynomials f1(x)+f2(x).

Definition at line 97 of file vnl_real_polynomial.cxx.

◆ operator-()

VNL_EXPORT vnl_real_polynomial operator- ( const vnl_real_polynomial f1,
const vnl_real_polynomial f2 
)

Returns sum of two polynomials f1(x)-f2(x).

Returns polynomial which is different of two polynomials f1(x)-f2(x).

Definition at line 119 of file vnl_real_polynomial.cxx.

◆ vnl_real_polynomial_evaluate()

template<class T >
T vnl_real_polynomial_evaluate ( double const *  a,
int  n,
T const &  x 
)

Definition at line 16 of file vnl_real_polynomial.cxx.

◆ vnl_rms_difference()

VNL_EXPORT double vnl_rms_difference ( const vnl_real_polynomial f1,
const vnl_real_polynomial f2,
double  x1,
double  x2 
)

Returns RMS difference between f1 and f2 over range [x1,x2].

$\frac1{\sqrt{|x_2-x_1|}}\,\sqrt{\int_{x_1}^{x_2}\left(f_1(x)-f_2(x)\right)^2\,dx}$

Definition at line 176 of file vnl_real_polynomial.cxx.