Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Search for

# ReferenceTetrahedron Class Reference

`#include <Polygon.h>`

Inheritance diagram for ReferenceTetrahedron:

List of all members.

## Public Member Functions
| ReferenceTetrahedron (string subscript="")
virtual | ~ReferenceTetrahedron ()
virtual int | no_vertices ()
virtual GiNaC::ex | vertex (int i)
virtual Line | line (int i)
virtual Triangle | triangle (int i)
virtual GiNaC::ex | repr (Repr_format format=SUBS_PERFORMED)
virtual string | str ()
virtual GiNaC::ex | integrate (GiNaC::ex f, Repr_format=SUBS_PERFORMED)

## Detailed Description

Definition at line 157 of file Polygon.h.

## Constructor & Destructor Documentation

ReferenceTetrahedron::ReferenceTetrahedron | ( | string | subscript = `""` | ) |

| Definition at line 846 of file Polygon.cpp. References Polygon::p, and Polygon::subscript.
    00846                                                              : Tetrahedron(subscript_) {
    00847   subscript = subscript_;
    00848   GiNaC::ex x0 = GiNaC::lst(0, 0, 0);
    00849   GiNaC::ex x1 = GiNaC::lst(1, 0, 0);
    00850   GiNaC::ex x2 = GiNaC::lst(0, 1, 0);
    00851   GiNaC::ex x3 = GiNaC::lst(0, 0, 1);
    00852
    00853   p.insert(p.end(), x0);
    00854   p.insert(p.end(), x1);
    00855   p.insert(p.end(), x2);
    00856   p.insert(p.end(), x3);
    00857 }

virtual ReferenceTetrahedron::~ReferenceTetrahedron | ( |  | ) | `[inline, virtual]`

| Definition at line 160 of file Polygon.h.
    00160 {}

## Member Function Documentation

GiNaC::ex ReferenceTetrahedron::integrate | ( | GiNaC::ex | f,
|  | Repr_format | = `SUBS_PERFORMED`
| ) | `[virtual]`

| Reimplemented from Tetrahedron. Definition at line 882 of file Polygon.cpp. References x, y, and z.
    00882                                                                       {
    00883
    00884   GiNaC::ex intf = GiNaC::integral(x,0,1-y-z,f);
    00885   intf = GiNaC::eval_integ(intf);
    00886
    00887   intf = GiNaC::integral(y,0,1-z, intf);
    00888   intf = GiNaC::eval_integ(intf);
    00889
    00890   intf = GiNaC::integral(z,0,1, intf);
    00891   intf = GiNaC::eval_integ(intf);
    00892
    00893   return intf;
    00894 }

Line ReferenceTetrahedron::line | ( | int | i | ) | `[virtual]`

| Reimplemented from Tetrahedron. Definition at line 867 of file Polygon.cpp. References Tetrahedron::line().
    00867                                       {
    00868    return Tetrahedron:: line(i);
    00869 }

int ReferenceTetrahedron::no_vertices | ( |  | ) | `[virtual]`

| Reimplemented from Tetrahedron. Definition at line 859 of file Polygon.cpp.
    00859                                         {
    00860    return 4;
    00861 }

virtual GiNaC::ex ReferenceTetrahedron::repr | ( | Repr_format | format = `SUBS_PERFORMED` | ) | `[inline, virtual]`

| Reimplemented from Tetrahedron. Definition at line 166 of file Polygon.h.
    00166 { return GiNaC::ex(0); }

string ReferenceTetrahedron::str | ( |  | ) | `[virtual]`

| Reimplemented from Tetrahedron. Definition at line 875 of file Polygon.cpp.
    00875                                   {
    00876    std::ostringstream s;
    00877 //   s <<"ReferenceTetrahedron("<<p[0]<<","<<p[1]<<","<<p[2]<<","<<p[3]<<")"<<endl;
    00878    s <<"ReferenceTetrahedron";
    00879    return s.str();
    00880 }

Triangle ReferenceTetrahedron::triangle | ( | int | i | ) | `[virtual]`

| Reimplemented from Tetrahedron. Definition at line 871 of file Polygon.cpp. References Tetrahedron::triangle().
    00871                                                {
    00872    return Tetrahedron:: triangle(i);
    00873 }

GiNaC::ex ReferenceTetrahedron::vertex | ( | int | i | ) | `[virtual]`

| Reimplemented from Tetrahedron. Definition at line 863 of file Polygon.cpp. References Tetrahedron::vertex().
    00863                                            {
    00864    return Tetrahedron:: vertex(i);
    00865 }

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

- Polygon.h
- Polygon.cpp