X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;ds=inline;f=check%2Fexam_pseries.cpp;h=0cacbbd1da56de9baea35a5651447a72feb8ed1f;hb=835af1e00da6ec929466e961357d4ef4917b1fb9;hp=9a1aaff57ab29ce8b53ea3102e834423c91b8f61;hpb=591b85b0697370f2f5f25a29a1e94ff831a02c12;p=ginac.git diff --git a/check/exam_pseries.cpp b/check/exam_pseries.cpp index 9a1aaff5..0cacbbd1 100644 --- a/check/exam_pseries.cpp +++ b/check/exam_pseries.cpp @@ -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; }