Nestedsums library
functions.h
Go to the documentation of this file.
1
7/*
8 * Copyright (C) 2001-2017 Stefan Weinzierl
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24
25
26#ifndef __NESTEDSUMS_FUNCTIONS_H__
27#define __NESTEDSUMS_FUNCTIONS_H__
28
29#include "ginac/ginac.h"
30
31namespace nestedsums {
32
33// Harmonic sums
34// first parameter is a GiNaC::lst holding the degrees, second parameter is the index
35DECLARE_FUNCTION_2P(Harmonic_sum)
36
37
38// Euler-Zagier sums
39// first parameter is a GiNaC::lst holding the degrees, second parameter holds the index
40DECLARE_FUNCTION_2P(EulerZagier_sum)
41
42
43// S sums to infinity
44// like the nestedsums object, arguments are in same order
45DECLARE_FUNCTION_2P(S_sum_infinity)
46
47
48// S sums
49// like the nestedsums object, arguments are in same order
50DECLARE_FUNCTION_3P(S_sum)
51
52
53// Z sums
54// like the nestedsums object, arguments are in same order
55DECLARE_FUNCTION_3P(Z_sum)
56
57
58// converts in an expression the ginac functions to the equivalent nestedsums objects
59extern GiNaC::ex convert_to_nestedsums(const GiNaC::ex & e);
60
61
62// converts in an expression the nestedsums objects to the equivalent ginac functions
63extern GiNaC::ex convert_to_ginac_functions(const GiNaC::ex & e);
64
65
66} // namespace nestedsums
67
68
69#endif // __NESTEDSUMS_FUNCTIONS_H__
70
Definition basic_letter.cc:35