Polynomial.h File Reference
`#include <iostream>`
`#include "SurgSim/Math/Polynomial-inl.h"`

Go to the source code of this file.

## Classes

class | SurgSim::Math::Polynomial< T, N >
| Polynomial<T, N> defines the concept of an N degree polynomial with type T coefficients and provides operations on them including arithmetic operations, construction, and IO. More...
class | SurgSim::Math::Polynomial< T, 0 >
| Polynomial<T, 0> specializes the Polynomial class for degree 0 (constant polynomials) More...
class | SurgSim::Math::Polynomial< T, 1 >
| Polynomial<T, 1> specializes the Polynomial class for degree 1 (linear polynomials) More...
class | SurgSim::Math::Polynomial< T, 2 >
| Polynomial<T, 2> specializes the Polynomial class for degree 2 (quadratic polynomials) More...
class | SurgSim::Math::Polynomial< T, 3 >
| Polynomial<T, 3> specializes the Polynomial class for degree 3 (cubic polynomials) More...

## Namespaces

| SurgSim
| SurgSim::Math

## Functions

template<typename T >
bool | SurgSim::Math::isNearZero (const T &value, const T &epsilon=static_cast< T >(polynomial_epsilon))
| Define an utility function for comparing individual coefficients to 0. More...
template<typename T , int N, int M>
Polynomial< T, N+M > | SurgSim::Math::operator* (const Polynomial< T, N > &p, const Polynomial< T, M > &q)
| Multiply two polynomials of arbitrary degree. More...
template<typename T >
Polynomial< T, 2 > | SurgSim::Math::operator* (const Polynomial< T, 1 > &p, const Polynomial< T, 1 > &q)
| Multiply two polynomials of degree 1. More...
template<typename T >
Polynomial< T, 3 > | SurgSim::Math::operator* (const Polynomial< T, 2 > &p, const Polynomial< T, 1 > &q)
| Multiply two polynomials of degree 2 and 1 respectively. More...
template<typename T >
Polynomial< T, 3 > | SurgSim::Math::operator* (const Polynomial< T, 1 > &p, const Polynomial< T, 2 > &q)
| Multiply two polynomials of degree 1 and 2 respectively. More...
template<typename T >
Polynomial< T, 0 > | SurgSim::Math::square (const Polynomial< T, 0 > &p)
| Square a degree 0 polynomial. More...
template<typename T >
Polynomial< T, 2 > | SurgSim::Math::square (const Polynomial< T, 1 > &p)
| Square a degree 1 polynomial. More...
template<typename T , int N>
std::ostream & | SurgSim::Math::operator<< (std::ostream &stream, const Polynomial< T, N > &p)
| Write a textual version of a Polynomial to an output stream. More...