Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include <iostream>
  2. #include <ginac/ginac.h>
  3. using namespace std;
  4. using namespace GiNaC;
  5.  
  6. int main()
  7. {
  8. symbol x("x"), y("y");
  9. ex poly;
  10.  
  11. for (int i=0; i<3; ++i)
  12. poly += factorial(i+16)*pow(x,i)*pow(y,2-i);
  13.  
  14. cout << poly << endl;
  15. return 0;
  16. }
  17.  
  18. /tmp/ccniH1BR.o: In function main':<br/>/home/greenbur/Delete_Me.cpp:8: undefined reference toGiNaC::symbol::symbol(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)'
  19. /home/greenbur/Delete_Me.cpp:8: undefined reference to `GiNaC::symbol:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement