Minor bug fix for the class modular_form_kernel: Ensure that the series-method includ...
authorStefan Weinzierl <weinzierl@uni-mainz.de>
Thu, 9 Sep 2021 14:21:45 +0000 (16:21 +0200)
committerStefan Weinzierl <weinzierl@uni-mainz.de>
Thu, 9 Sep 2021 14:21:45 +0000 (16:21 +0200)
ginac/integration_kernel.cpp

index 5e4405190cf20cb4bc4c25a8b6b170875b453374..797301a22d358fd9f2e36c8ed61603faf0c966cd 100644 (file)
@@ -1963,6 +1963,8 @@ ex modular_form_kernel::series(const relational & r, int order, unsigned options
        subs_q_expansion do_subs_q_expansion(qbar, order);
 
        ex res = do_subs_q_expansion(P).series(qbar,order);
        subs_q_expansion do_subs_q_expansion(qbar, order);
 
        ex res = do_subs_q_expansion(P).series(qbar,order);
+       res += Order(pow(qbar,order));
+       res = res.series(qbar,order);
 
        return res;
 }
 
        return res;
 }