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 5 of file line_ex3.cpp.

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

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


Generated on Tue Apr 18 12:00:27 2006 for SyFi by  doxygen 1.4.4