#include <SyFi.h>
Go to the source code of this file.
Functions | |
int | main () |
int main | ( | ) |
Definition at line 7 of file simple.cpp.
References demos::simple::f, SyFi::lst2string(), and SyFi::x.
00007 { 00008 ex pi = 3.14; 00009 cout <<"pi="<<pi<<endl; 00010 ex x = symbol("x"); 00011 cout <<"x="<<x<<endl; 00012 ex f = cos(x); 00013 cout <<"f="<<f<<endl; 00014 ex list = lst(pi,x,f); 00015 cout <<"list="<<list<<endl; 00016 00017 lst list2 = lst(pi,x,f); 00018 cout <<"list="<<lst2string(list2)<<endl; 00019 00020 for (int i=0; i< list.nops(); i++) { 00021 cout <<"item "<<i+1<<" = "<<list[i]<<endl; 00022 } 00023 00024 return 0; 00025 }