tetrahedron_ex3.cpp

Go to the documentation of this file.
00001 #include <SyFi.h>
00002 
00003 int main() {
00004   
00005   //example that check scaling
00006 
00007   numeric h(1,100); //1.0/100 
00008   numeric a(1,2); 
00009   ex p0 = lst(a,a,a);
00010   ex p1 = lst(a+h,a,a);
00011   ex p2 = lst(a,a+h,a);
00012   ex p3 = lst(a,a,a+h);
00013   
00014   Tetrahedron tetrahedron(p0,p1,p2,p3);
00015   
00016  
00017   ex f = 1;
00018   ex intf = tetrahedron.integrate(f); 
00019   cout <<"intf "<<intf<<endl; 
00020   EQUAL_OR_DIE(intf, "1/6000000"); 
00021  
00022   return 0; 
00023 }
00024 

Generated on Tue Nov 22 11:10:22 2005 for SyFi by  doxygen 1.4.4