#include <Polygon.h>
Inheritance diagram for ReferenceTetrahedron:
Public Member Functions | |
ReferenceTetrahedron (string subscript="") | |
~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) |
Definition at line 130 of file Polygon.h.
|
Definition at line 537 of file Polygon.cpp. References Polygon::p, and Polygon::subscript. 00537 : Tetrahedron(subscript_) { 00538 subscript = subscript_; 00539 GiNaC::ex x0 = GiNaC::lst(0, 0, 0); 00540 GiNaC::ex x1 = GiNaC::lst(1, 0, 0); 00541 GiNaC::ex x2 = GiNaC::lst(0, 1, 0); 00542 GiNaC::ex x3 = GiNaC::lst(0, 0, 1); 00543 00544 p.insert(p.end(), x0); 00545 p.insert(p.end(), x1); 00546 p.insert(p.end(), x2); 00547 p.insert(p.end(), x3); 00548 }
|
|
Definition at line 133 of file Polygon.h.
|
|
Reimplemented from Tetrahedron. Definition at line 573 of file Polygon.cpp. 00573 { 00574 // FIXME can not have two integrals and then two eval_integ ? 00575 // Does not integrate over 3D. 00576 00577 GiNaC::ex intf = GiNaC::integral(x,0,1-y-z,f); 00578 intf = GiNaC::eval_integ(intf); 00579 00580 intf = GiNaC::integral(y,0,1-z, intf); 00581 intf = GiNaC::eval_integ(intf); 00582 00583 intf = GiNaC::integral(z,0,1, intf); 00584 intf = GiNaC::eval_integ(intf); 00585 00586 return intf; 00587 }
|
|
Reimplemented from Tetrahedron. Definition at line 558 of file Polygon.cpp. References Tetrahedron::line(). 00558 { 00559 return Tetrahedron:: line(i); 00560 }
|
|
Reimplemented from Tetrahedron. Definition at line 550 of file Polygon.cpp.
|
|
Reimplemented from Tetrahedron. Definition at line 139 of file Polygon.h.
|
|
Reimplemented from Tetrahedron. Definition at line 566 of file Polygon.cpp. 00566 { 00567 std::ostringstream s; 00568 // s <<"ReferenceTetrahedron("<<p[0]<<","<<p[1]<<","<<p[2]<<","<<p[3]<<")"<<endl; 00569 s <<"ReferenceTetrahedron"; 00570 return s.str(); 00571 }
|
|
Reimplemented from Tetrahedron. Definition at line 562 of file Polygon.cpp. References Tetrahedron::triangle(). 00562 { 00563 return Tetrahedron:: triangle(i); 00564 }
|
|
Reimplemented from Tetrahedron. Definition at line 554 of file Polygon.cpp. References Tetrahedron::vertex(). 00554 { 00555 return Tetrahedron:: vertex(i); 00556 }
|