]> www.ginac.de Git - ginac.git/blobdiff - check/exam_pseries.cpp
Finalize 1.7.6 release.
[ginac.git] / check / exam_pseries.cpp
index e70c8dea27867aac29195b1e8ff3f73fa50663cc..e59026c494384a0124d203962c19d1310c77c308 100644 (file)
@@ -3,7 +3,7 @@
  *  Series expansion test (Laurent and Taylor series). */
 
 /*
- *  GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2019 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
@@ -141,6 +141,10 @@ static unsigned exam_series1()
        d = pow(a, b) + (pow(a, b)*b/a)*x + (pow(a, b)*b*b/a/a/2 - pow(a, b)*b/a/a/2)*pow(x, 2) + Order(pow(x, 3));
        result += check_series(e, 0, d, 3);
 
+       e = a * (1 / (x * sin(x)) - sin(x) / x);
+       d = a * pow(x, -2) + Order(pow(x, -1));
+       result += check_series(e, 0, d, -1);
+
        return result;
 }