]> www.ginac.de Git - ginac.git/blobdiff - check/exam_pseries.cpp
- The dimension of indices is now treated as a kind of "effective" dimension
[ginac.git] / check / exam_pseries.cpp
index 9a1aaff57ab29ce8b53ea3102e834423c91b8f61..0cacbbd1da56de9baea35a5651447a72feb8ed1f 100644 (file)
@@ -3,7 +3,7 @@
  *  Series expansion test (Laurent and Taylor series). */
 
 /*
- *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -98,6 +98,11 @@ static unsigned exam_series1(void)
        d = 1 + t + pow(t, 2) / 2 + pow(t, 3) / 6 + pow(t, 4) / 24 + pow(t, 5) / 120 + pow(t, 6) / 720 + pow(t, 7) / 5040 + Order(pow(x, 8));
        result += check_series(e, 0, d.expand());
        
+       e = log(x);
+       d = e;
+       result += check_series(e, 0, d, 1);
+       result += check_series(e, 0, d, 2);
+       
        return result;
 }