1 // eval_rational_series().
7 #include "cl_LF_tran.h"
12 #include "cln/lfloat.h"
13 #include "cln/integer.h"
14 #include "cln/abort.h"
20 // Evaluates S = sum(N1 <= n < N2, a(n)/b(n) * (p(N1)...p(n))/(q(N1)...q(n)))
21 // and returns P = p(N1)...p(N2-1), Q = q(N1)...q(N2-1), B = B(N1)...B(N2-1)
22 // and T = B*Q*S (all integers). On entry N1 < N2.
23 // P will not be computed if a NULL pointer is passed.
25 static inline void eval__series_aux (uintL N1, uintL N2,
26 const cl__series& args,
33 const cl_LF eval_rational_series (uintL N, const cl__series& args, uintC len)
36 return cl_I_to_LF(0,len);
38 eval__series_aux(0,N,args,&T);
39 return cl_I_to_LF(T,len);
41 // Bit complexity (if p(n), q(n), a(n), b(n) have length O(log(n))):