File:  [CENS] / python / pyGiNaC / ginac_test / test_pseries_power.cpp
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Nov 27 18:41:06 2001 UTC (16 years ago) by pearu
Branches: MAIN
CVS tags: HEAD
Implemented pseries.

#include <iostream>
#include <ginac/ginac.h>
using namespace std;
using namespace GiNaC;

int main()
{
  symbol x("x");
  ex p = (x+power(x,numeric(5))).series(x==numeric(0),3);
  cout << "p=" << p << endl;
  cout << "p**1=" << ex_to<pseries>(p).power_const(numeric(1),-1) << endl;
  return 0;
}


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>