polylogarithm

Implementation of polylogarithms in C/C++/Fortran

https://github.com/expander/polylogarithm

Science Score: 54.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.4%) to scientific vocabulary

Keywords

c cplusplus cpp fortran math mit-license polylogarithm special-functions
Last synced: 6 months ago · JSON representation ·

Repository

Implementation of polylogarithms in C/C++/Fortran

Basic Info
  • Host: GitHub
  • Owner: Expander
  • License: mit
  • Language: C++
  • Default Branch: master
  • Homepage:
  • Size: 10.4 MB
Statistics
  • Stars: 34
  • Watchers: 4
  • Forks: 4
  • Open Issues: 1
  • Releases: 34
Topics
c cplusplus cpp fortran math mit-license polylogarithm special-functions
Created over 10 years ago · Last pushed 7 months ago
Metadata Files
Readme License Citation

README.md

Polylogarithm

Build Status Coverage Status

The Polylogarithm package provides C, C++ and Fortran implementations of various polylogarithms, including the real and complex dilogarithm, trilogarithm, and (Standard and Glaisher) Clausen functions. The implementations have been fully tested against the literature and many other implementations and are highly optimized for fast numerical evaluation.

The package has no external dependencies, except for the C/C++/Fortran standard libraries. The implementations of the individual polylogarithm functions are distributed among different source code files, so individual source code files can be easily extracted and incorporated into existing projects.

Example in C++

```.cpp

include "Li.hpp"

include "Li2.hpp"

include "Li3.hpp"

include "Li4.hpp"

include "Li5.hpp"

include "Li6.hpp"

include

int main() { using namespace polylogarithm;

const double x = 1.0; const std::complex z(1.0, 1.0);

// real polylogarithms for real arguments std::cout << "Li2(" << x << ") = " << Li2(x) << '\n' << "Li3(" << x << ") = " << Li3(x) << '\n' << "Li_4(" << x << ") = " << Li4(x) << '\n';

// complex polylogarithms for complex arguments std::cout << "Li2(" << z << ") = " << Li2(z) << '\n' << "Li3(" << z << ") = " << Li3(z) << '\n' << "Li4(" << z << ") = " << Li4(z) << '\n' << "Li5(" << z << ") = " << Li5(z) << '\n' << "Li6(" << z << ") = " << Li6(z) << '\n' << "Li10(" << z << ") = " << Li(10,z) << '\n'; } ```

Output:

Li_2(1) = 1.64493 Li_3(1) = 1.20206 Li_4(1) = 1.08232 Li_2((1,1)) = (0.61685,1.46036) Li_3((1,1)) = (0.871159,1.26708) Li_4((1,1)) = (0.959319,1.13804) Li_5((1,1)) = (0.987467,1.06844) Li_6((1,1)) = (0.99615,1.03355) Li_10((1,1)) = (0.999962,1.00199)

Notes

The implementation of the real dilogarithm is an adaptation of [arXiv:2201.01678].

The implementation of the complex dilogarithm is inspired by the implementation in SPheno.

The implementation of the real trilogarithm is an adaptation of [arXiv:2308.11619].

The implementation of the general n-th order complex polylogarithm an adaptation of [arXiv:2010.09860].

Copying

Polylogarithm is licenced under the MIT License.

Owner

  • Name: Alexander Voigt
  • Login: Expander
  • Kind: user
  • Location: Flensburg
  • Company: Hochschule Flensburg

since 2019 lecturer at HS Flensburg, 2016-2019 Researcher at RWTH Aachen University, 2014-2016 Researcher at DESY Hamburg, 2010-2014 Researcher at TU Dresden

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Voigt"
  given-names: "Alexander"
  orcid: "https://orcid.org/0000-0001-8963-6512"
title: "Polylogarithm"
version: 7.0.0
date-released: 2024-03-15
url: "https://github.com/Expander/polylogarithm"
license: MIT

GitHub Events

Total
  • Delete event: 2
  • Issue comment event: 4
  • Push event: 5
  • Pull request event: 4
  • Create event: 2
Last Year
  • Delete event: 2
  • Issue comment event: 4
  • Push event: 5
  • Pull request event: 4
  • Create event: 2

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 3
  • Total pull requests: 39
  • Average time to close issues: about 15 hours
  • Average time to close pull requests: 17 days
  • Total issue authors: 3
  • Total pull request authors: 2
  • Average comments per issue: 4.67
  • Average comments per pull request: 0.38
  • Merged pull requests: 37
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 10
  • Average time to close issues: about 21 hours
  • Average time to close pull requests: 6 days
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 1.0
  • Average comments per pull request: 1.3
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • cesss (1)
  • Beliavsky (1)
  • dylanede (1)
Pull Request Authors
  • Expander (47)
  • APN-Pucky (3)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
enhancement (5) bug (2)

Dependencies

.github/workflows/test.yml actions
  • actions/checkout v1 composite