Polynom functions and classes


Classes

struct  phelm::Polynom
 Polynom of variables (x, y). More...

Functions

Polynom phelm::Polynom::diff (const Polynom &p, int i)
 A derivative of the polynom with respect to x or y.
double phelm::Polynom::integrate (const Polynom &p, const Triangle &t, const std::vector< MeshPoint > &ps)
 Takes the integral of Polynom over the Triangle t.
double phelm::Polynom::integrate_cos (const Polynom &p, const Triangle &t, const std::vector< MeshPoint > &ps)
 Takes the integral of Polynom over the Triangle t.
double phelm::Polynom::integrate_sin (const Polynom &p, const Triangle &t, const std::vector< MeshPoint > &ps)
 Takes the integral of Polynom over the Triangle t.
double phelm::Polynom::integrate_1_cos (const Polynom &p, const Triangle &t, const std::vector< MeshPoint > &ps)
 Takes the integral of Polynom over the Triangle t.
Polynom phelm::Polynom::operator* (const Polynom &p1, const Polynom &p2)
 A product of polynom p1 by polynom p2.
Polynom phelm::Polynom::operator- (const Polynom &p1, const Polynom &p2)
 A difference of two polynoms.
Polynom phelm::Polynom::operator+ (const Polynom &p1, const Polynom &p2)
 A sum of two polynoms.
Polynom phelm::Polynom::operator- (const Polynom &p1, double x)
 A difference between a polynom and a number.
Polynom phelm::Polynom::operator* (const Polynom &p1, double x)
 A product of a polynom p1 by a number x.

Variables

const Polynom phelm::Polynom::P2X
 The polynom: $P(x,y)=x$.
const Polynom phelm::Polynom::P2Y
 The polynom: $P(x,y)=y$.

Function Documentation

Polynom diff ( const Polynom p,
int  i 
) [related, inherited]

A derivative of the polynom with respect to x or y.

If i equals to 0 then calculate a derivative with respect to x. If i equals to 0 then calculate a derivative with respect to y. Calculates $ \frac{\partial P(x,y)}{\partial x} $ or $ \frac{\partial P(x,y)}{\partial y} $.

Parameters:
p - the polynom
i - 0 or 1 (x or y)
Returns:
$\frac{\partial P(x,y)}{\partial x}$ or $\frac{\partial P(x,y)}{\partial y}$.

Definition at line 131 of file polynom.cpp.

double integrate ( const Polynom p,
const Triangle t,
const std::vector< MeshPoint > &  ps 
) [related, inherited]

Takes the integral of Polynom over the Triangle t.

\[ \int_t p(x,y) dx dy \]

Parameters:
p - the polynom
t - the triangle
ps - the mesh points
Examples:
test_system_laplace.cpp.

Definition at line 257 of file polynom.cpp.

double integrate_1_cos ( const Polynom p,
const Triangle t,
const std::vector< MeshPoint > &  ps 
) [related, inherited]

Takes the integral of Polynom over the Triangle t.

\[ \int_t \frac{p(x,y)}{cos(x)} dx dy \]

Parameters:
p - the polynom
t - the triangle
ps - the mesh points

Definition at line 272 of file polynom.cpp.

double integrate_cos ( const Polynom p,
const Triangle t,
const std::vector< MeshPoint > &  ps 
) [related, inherited]

Takes the integral of Polynom over the Triangle t.

\[ \int_t p(x,y) cos(x) dx dy \]

Parameters:
p - the polynom
t - the triangle
ps - the mesh points

Definition at line 262 of file polynom.cpp.

double integrate_sin ( const Polynom p,
const Triangle t,
const std::vector< MeshPoint > &  ps 
) [related, inherited]

Takes the integral of Polynom over the Triangle t.

\[ \int_t p(x,y) sin(x) dx dy \]

Parameters:
p - the polynom
t - the triangle
ps - the mesh points

Definition at line 267 of file polynom.cpp.

Polynom operator* ( const Polynom p1,
double  x 
) [related, inherited]

A product of a polynom p1 by a number x.

Parameters:
p1 - the polynom
x - the number
Returns:
a product of a polynom and a number.

Definition at line 280 of file polynom.h.

Polynom operator* ( const Polynom p1,
const Polynom p2 
) [related, inherited]

A product of polynom p1 by polynom p2.

Parameters:
p1 - the polynom
p2 - the polynom
Returns:
a product of polynoms.

Definition at line 277 of file polynom.cpp.

Polynom operator+ ( const Polynom p1,
const Polynom p2 
) [related, inherited]

A sum of two polynoms.

Parameters:
p1 - the polynom
p2 - the polynom
Returns:
p1 + p2

Definition at line 319 of file polynom.cpp.

Polynom operator- ( const Polynom p1,
double  x 
) [related, inherited]

A difference between a polynom and a number.

Parameters:
p1 - the polynom
x - the number
Returns:
p1 - x

Definition at line 265 of file polynom.h.

Polynom operator- ( const Polynom p1,
const Polynom p2 
) [related, inherited]

A difference of two polynoms.

Parameters:
p1 - the polynom
p2 - the polynom
Returns:
p1 - p2

Definition at line 304 of file polynom.cpp.


Phelm Library
Copyright © 2009 Alexey Ozeritsky. All rights reserved.
http://resetius.ru