Functions | Variables
Test-Polynomial.C File Reference

Test application for the templated Polynomial class. More...

Include dependency graph for Test-Polynomial.C:

Go to the source code of this file.

Functions

scalar polyValue (const scalar x)
 
scalar intPolyValue (const scalar x)
 
scalar polyValue1 (const scalar x)
 
scalar polyValue2 (const scalar x)
 
int main (int argc, char *argv[])
 

Variables

const int PolySize = 8
 
const scalar coeff [] = { 0.11, 0.45, -0.94, 1.58, -2.58, 0.08, 3.15, -4.78 }
 
const char * polyDef = "(0.11 0.45 -0.94 1.58 -2.58 0.08 3.15 -4.78)"
 

Detailed Description

Test application for the templated Polynomial class.

Original source file Test-Polynomial.C

Definition in file Test-Polynomial.C.

Function Documentation

◆ polyValue()

scalar polyValue ( const scalar  x)

Definition at line 42 of file Test-Polynomial.C.

References coeff, Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), Foam::sqr(), and x.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ intPolyValue()

scalar intPolyValue ( const scalar  x)

Definition at line 57 of file Test-Polynomial.C.

References coeff, Foam::pow3(), Foam::pow4(), Foam::pow5(), Foam::pow6(), Foam::sqr(), and x.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ polyValue1()

scalar polyValue1 ( const scalar  x)

Definition at line 72 of file Test-Polynomial.C.

References coeff, PolySize, Foam::pow(), and x.

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ polyValue2()

scalar polyValue2 ( const scalar  x)

Definition at line 86 of file Test-Polynomial.C.

References coeff, PolySize, and x.

Referenced by main().

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

◆ PolySize

const int PolySize = 8

◆ coeff

const scalar coeff[] = { 0.11, 0.45, -0.94, 1.58, -2.58, 0.08, 3.15, -4.78 }

◆ polyDef

const char* polyDef = "(0.11 0.45 -0.94 1.58 -2.58 0.08 3.15 -4.78)"

Definition at line 39 of file Test-Polynomial.C.

Referenced by main().