Namespaces | Functions
Polynomial-inl.h File Reference
#include <stdlib.h>
#include <algorithm>
#include "SurgSim/Math/IntervalArithmetic.h"

Go to the source code of this file.

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...