openGPMP
Open Source Mathematics Package
Public Member Functions | Public Attributes | List of all members
gpmp::Term Class Reference

Represents a term in a polynomial. More...

#include <differential.hpp>

Public Member Functions

 Term (double coef, int exp)
 Constructs a Term with given coefficient and exponent. More...
 

Public Attributes

double coefficient
 
int exponent
 

Detailed Description

Represents a term in a polynomial.

Definition at line 50 of file differential.hpp.

Constructor & Destructor Documentation

◆ Term()

gpmp::Term::Term ( double  coef,
int  exp 
)
inline

Constructs a Term with given coefficient and exponent.

Parameters
coefThe coefficient of the term
expThe exponent of the term

Definition at line 60 of file differential.hpp.

60  : coefficient(coef), exponent(exp) {
61  }
double coefficient

Member Data Documentation

◆ coefficient

double gpmp::Term::coefficient

Coefficient of the term

Definition at line 52 of file differential.hpp.

◆ exponent

int gpmp::Term::exponent

Exponent of the term

Definition at line 53 of file differential.hpp.


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