X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Finifcns_nstdsums.cpp;h=4312377f10cf2d868972db41a56dac127973855d;hp=9dd590d35c6eb88626c8b8cab0c981fdf295d445;hb=cc94094751459129e1392a93dfa0264adac789a5;hpb=5d367f84b43b0636f943fe239f7a58b4d147f002 diff --git a/ginac/inifcns_nstdsums.cpp b/ginac/inifcns_nstdsums.cpp index 9dd590d3..4312377f 100644 --- a/ginac/inifcns_nstdsums.cpp +++ b/ginac/inifcns_nstdsums.cpp @@ -47,7 +47,7 @@ */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2010 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 @@ -64,11 +64,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include -#include -#include - #include "inifcns.h" #include "add.h" @@ -84,6 +79,10 @@ #include "utils.h" #include "wildcard.h" +#include +#include +#include +#include namespace GiNaC { @@ -210,7 +209,7 @@ void double_Xn() } } // X_n - for (int n=2; n& x, const std::vector& s, Gparameter a(x.size()); exmap subslst; std::size_t pos = 1; - int scale; + int scale = pos; for (sortmap_t::const_iterator it = sortmap.begin(); it != sortmap.end(); ++it) { if (it->second < x.size()) { if (s[it->second] > 0) { @@ -1684,7 +1686,7 @@ static void Li_print_latex(const ex& m_, const ex& x_, const print_context& c) } else { x = lst(x_); } - c.s << "\\mbox{Li}_{"; + c.s << "\\mathrm{Li}_{"; lst::const_iterator itm = m.begin(); (*itm).print(c); itm++; @@ -2200,7 +2202,7 @@ static ex S_deriv(const ex& n, const ex& p, const ex& x, unsigned deriv_param) static void S_print_latex(const ex& n, const ex& p, const ex& x, const print_context& c) { - c.s << "\\mbox{S}_{"; + c.s << "\\mathrm{S}_{"; n.print(c); c.s << ","; p.print(c); @@ -2281,7 +2283,7 @@ bool convert_parameter_H_to_Li(const lst& l, lst& m, lst& s, ex& pf) } } if (has_negative_parameters) { - for (int i=0; i 0) && (parameter[lastentry-1] == 0)) { lastentry--; } @@ -2492,9 +2494,9 @@ ex trafo_H_mult(const ex& h1, const ex& h2) hlong = h2.op(0).op(0); } } - for (int i=0; i<=hlong.nops(); i++) { + for (std::size_t i=0; i<=hlong.nops(); i++) { lst newparameter; - int j=0; + std::size_t j=0; for (; j(e.op(pos)) && is_a(e.op(pos).op(0))) { std::string name = ex_to(e.op(pos).op(0)).get_name(); if (name == "H") { @@ -2556,7 +2558,7 @@ struct map_trafo_H_mult : public map_function if (Hlst.nops() > 0) { ex buffer = trafo_H_mult(firstH, Hlst.op(0)); result *= buffer; - for (int i=1; i(e.op(i))) { std::string name = ex_to(e.op(i)).get_name(); if (name == "H") { @@ -2616,7 +2618,7 @@ ex trafo_H_prepend_one(const ex& e, const ex& arg) if (name == "H") { h = e; } else { - for (int i=0; i(e.op(i))) { std::string name = ex_to(e.op(i)).get_name(); if (name == "H") { @@ -2647,7 +2649,7 @@ ex trafo_H_1tx_prepend_minusone(const ex& e, const ex& arg) if (name == "H") { h = e; } else { - for (int i=0; i(e.op(i))) { std::string name = ex_to(e.op(i)).get_name(); if (name == "H") { @@ -2680,7 +2682,7 @@ ex trafo_H_1mxt1px_prepend_minusone(const ex& e, const ex& arg) if (name == "H") { h = e; } else { - for (int i=0; i(e.op(i))) { std::string name = ex_to(e.op(i)).get_name(); if (name == "H") { @@ -2711,7 +2713,7 @@ ex trafo_H_1mxt1px_prepend_one(const ex& e, const ex& arg) if (name == "H") { h = e; } else { - for (int i=0; i(e.op(i))) { std::string name = ex_to(e.op(i)).get_name(); if (name == "H") { @@ -2749,7 +2751,7 @@ struct map_trafo_H_1mx : public map_function // special cases if all parameters are either 0, 1 or -1 bool allthesame = true; if (parameter.op(0) == 0) { - for (int i=1; i(buffer)) { - for (int i=0; i(buffer)) { - for (int i=0; i(buffer)) { - for (int i=0; i(buffer)) { - for (int i=0; i(buffer)) { - for (int i=0; i& crX, int Sm = 0; int Smp1 = 0; std::vector > crG(s.size() - 1, std::vector(L2 + 1)); - for (int m=0; m < s.size() - 1; m++) { + for (int m=0; m < (int)s.size() - 1; m++) { Sm += s[m]; Smp1 = Sm + s[m+1]; for (int i = 0; i <= L2; i++) @@ -3708,7 +3710,7 @@ cln::cl_N zeta_do_Hoelder_convolution(const std::vector& m_, const std::vec s_p[0] = s_p[0] * cln::cl_N("1/2"); // convert notations int sig = 1; - for (int i=0; i