00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
#ifndef __NESTEDSUMS_NIELSEN_POLYLOG_H__
00027
#define __NESTEDSUMS_NIELSEN_POLYLOG_H__
00028
00029
#include "ginac/ginac.h"
00030
00031
namespace nestedsums {
00032
00034
00050 class nielsen_polylog :
public harmonic_polylog
00051 {
00052 GINAC_DECLARE_REGISTERED_CLASS(
nielsen_polylog,
harmonic_polylog)
00053
00054
00055
public:
00056
explicit nielsen_polylog(
const GiNaC::ex & llc);
00057
00058
00059
public:
00060
void archive(GiNaC::archive_node &node)
const;
00061
void read_archive(
const GiNaC::archive_node &node, GiNaC::lst &sym_lst);
00062
00063
void print(
const GiNaC::print_context & c,
unsigned level = 0)
const;
00064 GiNaC::ex
eval(
int level = 0)
const;
00065 };
00066
00067 GINAC_DECLARE_UNARCHIVER(
nielsen_polylog);
00068
00074 inline GiNaC::ex
create_nielsen_polylog(
const GiNaC::ex & llc)
00075 {
00076
return (
new nielsen_polylog(llc))->setflag(GiNaC::status_flags::dynallocated);
00077 }
00078
00079 }
00080
00081
namespace GiNaC {
00082
00083
00084
template<>
inline const nestedsums::nielsen_polylog &ex_to<nestedsums::nielsen_polylog>(
const ex &e)
00085 {
00086
return dynamic_cast<const nestedsums::nielsen_polylog &>(*e.bp);
00087 }
00088
00089 }
00090
00091
#endif // ndef __NESTEDSUMS_NIELSEN_POLYLOG_H__