26#ifndef __NESTEDSUMS_ROOT_OF_UNITY_H__
27#define __NESTEDSUMS_ROOT_OF_UNITY_H__
29#include "ginac/ginac.h"
51 void archive(GiNaC::archive_node &node)
const override;
52 void read_archive(
const GiNaC::archive_node &node, GiNaC::lst &sym_lst)
override;
54 unsigned return_type(
void)
const override {
return GiNaC::return_types::noncommutative; }
56 void print(
const GiNaC::print_context & c,
unsigned level = 0)
const override;
57 unsigned precedence(
void)
const override {
return 50;}
58 GiNaC::ex
eval()
const override;
59 GiNaC::ex subs(
const GiNaC::exmap & m,
unsigned options = 0)
const override;
62 GiNaC::ex
eval_ncmul(
const GiNaC::exvector & v)
const override;
63 GiNaC::ex derivative(
const GiNaC::symbol & s)
const override;
64 unsigned calchash(
void)
const override;
91 return (
new root_of_unity(l,k))->setflag(GiNaC::status_flags::dynallocated);
Definition root_of_unity.h:42
GiNaC::ex eval_ncmul(const GiNaC::exvector &v) const override
Definition root_of_unity.cc:171
GiNaC::ex eval() const override
Definition root_of_unity.cc:148
Definition basic_letter.cc:35
GiNaC::ex create_root_of_unity(unsigned l, unsigned k)
Definition root_of_unity.h:89