simple.cpp

Go to the documentation of this file.
00001 #include <SyFi.h>
00002 
00003 using namespace GiNaC; 
00004 
00005 int main() {
00006    ex pi = 3.14; 
00007    cout <<"pi="<<pi<<endl; 
00008    ex x = symbol("x"); 
00009    cout <<"x="<<x<<endl; 
00010    ex f = cos(x); 
00011    cout <<"f="<<f<<endl; 
00012    ex list = lst(pi,x,f); 
00013    cout <<"list="<<list<<endl; 
00014    
00015    for (int i=0; i< list.nops(); i++) {
00016      cout <<"item "<<i+1<<" = "<<list[i]<<endl; 
00017    }
00018 }

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