SyFi  0.3
SyFi::ReferenceTetrahedron Class Reference

#include <Polygon.h>

Inheritance diagram for SyFi::ReferenceTetrahedron:
SyFi::Tetrahedron SyFi::Polygon

List of all members.

Public Member Functions

 ReferenceTetrahedron (const std::string &subscript="")
 ReferenceTetrahedron (const ReferenceTetrahedron &tetrahedron)
virtual ~ReferenceTetrahedron ()
virtual const std::string str () const
virtual GiNaC::ex integrate (GiNaC::ex f, Repr_format format=SUBS_PERFORMED)
virtual ReferenceTetrahedroncopy () const

Detailed Description

Definition at line 196 of file Polygon.h.


Constructor & Destructor Documentation

SyFi::ReferenceTetrahedron::ReferenceTetrahedron ( const std::string &  subscript = "")

Referenced by copy().

Definition at line 1064 of file Polygon.cpp.

: Tetrahedron(tetrahedron) { }

Definition at line 201 of file Polygon.h.

{}

Member Function Documentation

Reimplemented from SyFi::Tetrahedron.

Definition at line 1089 of file Polygon.cpp.

References ReferenceTetrahedron().

        {
                return new ReferenceTetrahedron(*this);
        }
ex SyFi::ReferenceTetrahedron::integrate ( GiNaC::ex  f,
Repr_format  format = SUBS_PERFORMED 
) [virtual]

Reimplemented from SyFi::Tetrahedron.

Definition at line 1074 of file Polygon.cpp.

References SyFi::x.

Referenced by main().

        {

                ex intf = GiNaC::integral(x,0,1-y-z,f);
                intf = GiNaC::eval_integ(intf);

                intf = GiNaC::integral(y,0,1-z, intf);
                intf = GiNaC::eval_integ(intf);

                intf = GiNaC::integral(z,0,1, intf);
                intf = GiNaC::eval_integ(intf);

                return intf;
        }
const string SyFi::ReferenceTetrahedron::str ( ) const [virtual]

Reimplemented from SyFi::Tetrahedron.

Definition at line 1066 of file Polygon.cpp.

        {
                std::ostringstream s;
                //    s <<"ReferenceTetrahedron("<<p[0]<<","<<p[1]<<","<<p[2]<<","<<p[3]<<")";
                s <<"ReferenceTetrahedron";
                return s.str();
        }

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator