#include <polynom.h>
Public Member Functions | |
| Polynom (short x_deg, short y_deg) | |
| Creates new empty polynom. | |
| Polynom (short x_deg, short y_deg, double *koef, int l) | |
| Creates new polynom from coefficients. | |
| std::string | print () const |
| Prints polynom into the string. | |
| double | apply (double x, double y) const |
| Calculates Polynom(x, y). | |
| double | k (int i, int j) const |
| Returns polynom coefficient. | |
| void | operator/= (double k) |
| Calculates new polynom. | |
Public Attributes | |
| short | x_deg_ |
| x degree | |
| short | y_deg_ |
| y degree | |
| std::vector< double > | koef_ |
| coefficients | |
Related Functions | |
| (Note that these are not member functions.) | |
| const Polynom | P2X |
The polynom: . | |
| const Polynom | P2Y |
The polynom: . | |
| Polynom | diff (const Polynom &p, int i) |
| A derivative of the polynom with respect to x or y. | |
| double | integrate (const Polynom &p, const Triangle &t, const std::vector< MeshPoint > &ps) |
| Takes the integral of Polynom over the Triangle t. | |
| double | integrate_cos (const Polynom &p, const Triangle &t, const std::vector< MeshPoint > &ps) |
| Takes the integral of Polynom over the Triangle t. | |
| double | integrate_sin (const Polynom &p, const Triangle &t, const std::vector< MeshPoint > &ps) |
| Takes the integral of Polynom over the Triangle t. | |
| double | integrate_1_cos (const Polynom &p, const Triangle &t, const std::vector< MeshPoint > &ps) |
| Takes the integral of Polynom over the Triangle t. | |
| Polynom | operator* (const Polynom &p1, const Polynom &p2) |
| A product of polynom p1 by polynom p2. | |
| Polynom | operator- (const Polynom &p1, const Polynom &p2) |
| A difference of two polynoms. | |
| Polynom | operator+ (const Polynom &p1, const Polynom &p2) |
| A sum of two polynoms. | |
| Polynom | operator- (const Polynom &p1, double x) |
| A difference between a polynom and a number. | |
| Polynom | operator* (const Polynom &p1, double x) |
| A product of a polynom p1 by a number x. | |
Examples:
x degree = 2; y degree = 1,
x degree = 2; y degree = 0.
Definition at line 77 of file polynom.h.
| phelm::Polynom::Polynom | ( | short | x_deg, | |
| short | y_deg | |||
| ) | [inline] |
| phelm::Polynom::Polynom | ( | short | x_deg, | |
| short | y_deg, | |||
| double * | koef, | |||
| int | l | |||
| ) | [inline] |
| double phelm::Polynom::apply | ( | double | x, | |
| double | y | |||
| ) | const |
| double phelm::Polynom::k | ( | int | i, | |
| int | j | |||
| ) | const [inline] |
| void phelm::Polynom::operator/= | ( | double | k | ) | [inline] |
| std::string phelm::Polynom::print | ( | ) | const |
Prints polynom into the string.
Definition at line 97 of file polynom.cpp.