{"id":16499389,"url":"https://github.com/expander/polylogarithm","last_synced_at":"2025-03-21T08:31:02.032Z","repository":{"id":43712737,"uuid":"42311386","full_name":"Expander/polylogarithm","owner":"Expander","description":"Implementation of polylogarithms in C/C++/Fortran","archived":false,"fork":false,"pushed_at":"2025-03-20T13:25:12.000Z","size":10848,"stargazers_count":33,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-20T14:35:41.094Z","etag":null,"topics":["c","cplusplus","cpp","fortran","math","mit-license","polylogarithm","special-functions"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Expander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-11T13:54:06.000Z","updated_at":"2025-03-20T13:25:14.000Z","dependencies_parsed_at":"2023-02-09T22:16:05.620Z","dependency_job_id":"50ecfab6-9686-43ac-a4b2-6f341a16d525","html_url":"https://github.com/Expander/polylogarithm","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expander%2Fpolylogarithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expander%2Fpolylogarithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expander%2Fpolylogarithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Expander%2Fpolylogarithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Expander","download_url":"https://codeload.github.com/Expander/polylogarithm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244764783,"owners_count":20506706,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cplusplus","cpp","fortran","math","mit-license","polylogarithm","special-functions"],"created_at":"2024-10-11T14:52:24.329Z","updated_at":"2025-03-21T08:30:58.358Z","avatar_url":"https://github.com/Expander.png","language":"C++","readme":"Polylogarithm\n=============\n\n[![Build Status](https://github.com/Expander/polylogarithm/workflows/test/badge.svg)](https://github.com/Expander/polylogarithm/actions)\n[![Coverage Status](https://coveralls.io/repos/github/Expander/polylogarithm/badge.svg)](https://coveralls.io/github/Expander/polylogarithm)\n\nThe Polylogarithm package provides C, C++ and Fortran implementations\nof various polylogarithms, including the real and complex dilogarithm,\ntrilogarithm, and (Standard and Glaisher) Clausen functions.  The\nimplementations have been fully tested against the literature and many\nother implementations and are highly optimized for fast numerical\nevaluation.\n\nThe package has no external dependencies, except for the C/C++/Fortran\nstandard libraries.  The implementations of the individual polylogarithm\nfunctions are distributed among different source code files, so\nindividual source code files can be easily extracted and incorporated\ninto existing projects.\n\n\nExample in C++\n--------------\n\n```.cpp\n#include \"Li.hpp\"\n#include \"Li2.hpp\"\n#include \"Li3.hpp\"\n#include \"Li4.hpp\"\n#include \"Li5.hpp\"\n#include \"Li6.hpp\"\n#include \u003ciostream\u003e\n\nint main() {\n   using namespace polylogarithm;\n\n   const double x = 1.0;\n   const std::complex\u003cdouble\u003e z(1.0, 1.0);\n\n   // real polylogarithms for real arguments\n   std::cout\n      \u003c\u003c \"Li_2(\" \u003c\u003c x \u003c\u003c \") = \" \u003c\u003c Li2(x) \u003c\u003c '\\n'\n      \u003c\u003c \"Li_3(\" \u003c\u003c x \u003c\u003c \") = \" \u003c\u003c Li3(x) \u003c\u003c '\\n'\n      \u003c\u003c \"Li_4(\" \u003c\u003c x \u003c\u003c \") = \" \u003c\u003c Li4(x) \u003c\u003c '\\n';\n\n   // complex polylogarithms for complex arguments\n   std::cout\n      \u003c\u003c \"Li_2(\" \u003c\u003c z \u003c\u003c \") = \" \u003c\u003c Li2(z) \u003c\u003c '\\n'\n      \u003c\u003c \"Li_3(\" \u003c\u003c z \u003c\u003c \") = \" \u003c\u003c Li3(z) \u003c\u003c '\\n'\n      \u003c\u003c \"Li_4(\" \u003c\u003c z \u003c\u003c \") = \" \u003c\u003c Li4(z) \u003c\u003c '\\n'\n      \u003c\u003c \"Li_5(\" \u003c\u003c z \u003c\u003c \") = \" \u003c\u003c Li5(z) \u003c\u003c '\\n'\n      \u003c\u003c \"Li_6(\" \u003c\u003c z \u003c\u003c \") = \" \u003c\u003c Li6(z) \u003c\u003c '\\n'\n      \u003c\u003c \"Li_10(\" \u003c\u003c z \u003c\u003c \") = \" \u003c\u003c Li(10,z) \u003c\u003c '\\n';\n}\n```\n\nOutput:\n\n```\nLi_2(1) = 1.64493\nLi_3(1) = 1.20206\nLi_4(1) = 1.08232\nLi_2((1,1)) = (0.61685,1.46036)\nLi_3((1,1)) = (0.871159,1.26708)\nLi_4((1,1)) = (0.959319,1.13804)\nLi_5((1,1)) = (0.987467,1.06844)\nLi_6((1,1)) = (0.99615,1.03355)\nLi_10((1,1)) = (0.999962,1.00199)\n```\n\n\nNotes\n-----\n\nThe implementation of the real dilogarithm is an adaptation of\n[[arXiv:2201.01678](https://arxiv.org/abs/2201.01678)].\n\nThe implementation of the complex dilogarithm is inspired by the\nimplementation in [SPheno](https://spheno.hepforge.org/).\n\nThe implementation of the real trilogarithm is an adaptation of\n[[arXiv:2308.11619](https://arxiv.org/abs/2308.11619)].\n\nThe implementation of the general n-th order complex polylogarithm an\nadaptation of [[arXiv:2010.09860](https://arxiv.org/abs/2010.09860)].\n\n\nCopying\n-------\n\nPolylogarithm is licenced under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpander%2Fpolylogarithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpander%2Fpolylogarithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpander%2Fpolylogarithm/lists"}