Nestedsums library
multiple_polylog.h
Go to the documentation of this file.
1
8/*
9 * Copyright (C) 2001-2017 Stefan Weinzierl
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */
25
26#ifndef __NESTEDSUMS_MULTIPLE_POLYLOG_H__
27#define __NESTEDSUMS_MULTIPLE_POLYLOG_H__
28
29#include "ginac/ginac.h"
30
31namespace nestedsums {
32
34
53 class multiple_polylog : public virtual Zsum
54 {
55 GINAC_DECLARE_REGISTERED_CLASS(multiple_polylog, Zsum)
56
57 // ctors
58 public:
59 explicit multiple_polylog(const GiNaC::ex & llc);
60
61 // functions overriding virtual functions from bases classes
62 public:
63 void archive(GiNaC::archive_node &node) const override;
64 void read_archive(const GiNaC::archive_node &node, GiNaC::lst &sym_lst) override;
65
66 void print(const GiNaC::print_context & c, unsigned level = 0) const override;
67 GiNaC::ex eval() const override;
68
69 // new virtual functions
70 public:
71 virtual GiNaC::ex eval_approx() const;
72 };
73
74GINAC_DECLARE_UNARCHIVER(multiple_polylog);
75
81inline GiNaC::ex create_multiple_polylog(const GiNaC::ex & llc)
82 {
83 return (new multiple_polylog(llc))->setflag(GiNaC::status_flags::dynallocated);
84 }
85
86 GiNaC::ex eval_multiple_polylog_approx(const GiNaC::ex & expr);
87
88} // namespace nestedsums
89
90namespace GiNaC {
91
92 // template specialization
93template<> inline const nestedsums::multiple_polylog &ex_to<nestedsums::multiple_polylog>(const ex &e)
94 {
95 return dynamic_cast<const nestedsums::multiple_polylog &>(*e.bp);
96 }
97
98} // end namespace GiNaC
99
100#endif // ndef __NESTEDSUMS_MULTIPLE_POLYLOG_H__
Zsums form a Hopf algebra.
Definition Zsum.h:54
A multiple polylog sum is a special case of a Zsum.
Definition multiple_polylog.h:54
virtual GiNaC::ex eval_approx() const
Definition multiple_polylog.cc:252
GiNaC::ex eval() const override
Definition multiple_polylog.cc:211
Definition basic_letter.cc:35
ex eval_multiple_polylog_approx(const ex &expr)
Definition multiple_polylog.cc:367
GiNaC::ex create_multiple_polylog(const GiNaC::ex &llc)
Definition multiple_polylog.h:81