Skip to content

Commit

Permalink
add wrapper for Mathematica's PolyLog[2,_] function
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Sep 10, 2015
1 parent 69ef10a commit a052ef5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/wrappers.hpp
Expand Up @@ -29,6 +29,8 @@
#include <Eigen/Core>
#include <boost/lexical_cast.hpp>

#include "dilog.hpp"

namespace flexiblesusy {

static const double Pi = M_PI;
Expand Down Expand Up @@ -291,6 +293,13 @@ inline int Sign(int x)
return (x >= 0 ? 1 : -1);
}

template <typename T>
T PolyLog(int n, T z) {
if (n == 2)
return dilog(z);
assert(false && "PolyLog(n!=2) not implemented");
}

template <typename Base, typename Exponent>
Base Power(Base base, Exponent exp)
{
Expand Down

0 comments on commit a052ef5

Please sign in to comment.