line_ex3.cpp File Reference

#include <SyFi.h>

Go to the source code of this file.

Functions

int main ()


Function Documentation

int main  ) 
 

Definition at line 3 of file line_ex3.cpp.

References EQUAL_OR_DIE(), and Line::integrate().

00003            {
00004 
00005   // example that check scaling
00006   
00007   numeric h(1,100); // 1.0/100  
00008   numeric a(1,2);   // 1.0/2 
00009   ex p0 = lst(a,a,a);
00010   ex p1 = lst(a+h,a,a);
00011   
00012   Line line(p0,p1);
00013   
00014   
00015   ex f = 1;  
00016   ex intf = line.integrate(f); 
00017   cout <<"intf "<<intf<<endl; 
00018   EQUAL_OR_DIE(intf, "1/100"); 
00019 
00020 
00021 
00022   return 0; 
00023 
00024 }


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