[GiNaC-devel] pseries patch

Vladimir Kisil kisilv at maths.leeds.ac.uk
Mon Feb 12 01:55:41 CET 2007


		Dear All,

		I come across an inability of GiNaC to compute simple series,
  e.g. in the following example:

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

int main(){
	possymbol t("t");
	cout << pow(2-sqrt(1-t), -1).series(t==0,2) << endl;
	cout << pow(1-sqrt(1-pow(t,2)), -1).series(t==0,2) << endl;
}

 A simple patch included in the attachment seems to solve the issue.
 
 Best wishes,
	  Vladimir
-- 
Vladimir V. Kisil     email: kisilv at maths.leeds.ac.uk
--                      www: http://maths.leeds.ac.uk/~kisilv/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-c++
Size: 643 bytes
Desc: GiNaC patch
Url : http://www.cebix.net/pipermail/ginac-devel/attachments/20070212/e5886c0b/attachment.bin


More information about the GiNaC-devel mailing list