box_ex1.cpp File Reference

#include <SyFi.h>

Go to the source code of this file.

Functions

int main ()


Function Documentation

int main  ) 
 

Definition at line 5 of file box_ex1.cpp.

References Box::integrate(), ReferenceBox::integrate(), Box::repr(), ReferenceBox::repr(), x, y, and z.

00005            {
00006   
00007   ex f = x*y*z;
00008   ReferenceBox box; 
00009 
00010   ex repr = box.repr();
00011   cout <<"b.repr "<<repr<<endl; 
00012   
00013   ex intf = box.integrate(f); 
00014   cout <<"intf "<<intf<<endl; 
00015 
00016 
00017 
00018   ex p0 = lst(-1.0,-1.0,-1.0);
00019   ex p1 = lst( 1.0, 1.0, 1.0);
00020   
00021   Box box2(p0,p1);
00022   
00023   ex repr2 = box2.repr();
00024   cout <<"b2.repr "<<repr<<endl; 
00025   
00026   ex intf2 = box2.integrate(f); 
00027   cout <<"intf2 "<<intf2<<endl; 
00028 
00029   return 0; 
00030 }


Generated on Tue Jun 13 13:18:39 2006 for SyFi by  doxygen 1.4.4