RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Polynomial Class Reference

#include <poly.h>

Public Member Functions

 Polynomial ()
 
 Polynomial (const Polynomial &original)
 
 Polynomial (const CmplxPolynomial &original)
 
 Polynomial (const double coeff_1, const double coeff_0)
 
Polynomialoperator= (const Polynomial &right)
 
Polynomialoperator*= (const Polynomial &right)
 
Polynomialoperator/= (const Polynomial &right)
 
void DumpToStream (std::ofstream *output_stream)
 
int GetDegree (void)
 
double GetCoefficient (int k)
 

Private Attributes

int Degree
 
double * Coefficient
 

Detailed Description

Definition at line 10 of file poly.h.

Constructor & Destructor Documentation

Polynomial::Polynomial()

Definition at line 15 of file poly.cpp.

Polynomial::Polynomial(const Polynomialoriginal)

Definition at line 26 of file poly.cpp.

Polynomial::Polynomial(const CmplxPolynomialoriginal)

Definition at line 40 of file poly.cpp.

Polynomial::Polynomial(const double coeff_1,
const double coeff_0 
)

Definition at line 54 of file poly.cpp.

Member Function Documentation

void Polynomial::DumpToStream(std::ofstream * output_stream)

Definition at line 162 of file poly.cpp.

double Polynomial::GetCoefficient(int k)

Definition at line 185 of file poly.cpp.

int Polynomial::GetDegree(void )

Definition at line 176 of file poly.cpp.

Polynomial & Polynomial::operator*=(const Polynomialright)

Definition at line 92 of file poly.cpp.

Polynomial & Polynomial::operator/=(const Polynomialright)

Definition at line 127 of file poly.cpp.

Polynomial & Polynomial::operator=(const Polynomialright)

Definition at line 69 of file poly.cpp.

Member Data Documentation

double* Polynomial::Coefficient
private

Definition at line 45 of file poly.h.

int Polynomial::Degree
private

Definition at line 44 of file poly.h.


The documentation for this class was generated from the following files: