#include <SyFi.h>
Go to the source code of this file.
Functions | |
int | main () |
|
Definition at line 3 of file simple.cpp. References x. 00003 { 00004 ex pi = 3.14; 00005 cout <<"pi="<<pi<<endl; 00006 ex x = symbol("x"); 00007 cout <<"x="<<x<<endl; 00008 ex f = cos(x); 00009 cout <<"f="<<f<<endl; 00010 ex list = lst(pi,x,f); 00011 cout <<"list="<<list<<endl; 00012 00013 for (int i=0; i< list.nops(); i++) { 00014 cout <<"item "<<i+1<<" = "<<list[i]<<endl; 00015 } 00016 }
|