How can I insert a polylogarithm function to FORTRAN?

  • Context: Fortran 
  • Thread starter Thread starter bulash
  • Start date Start date
  • Tags Tags
    Function
Click For Summary

Discussion Overview

The discussion revolves around how to implement a polylogarithm function, specifically the Li_2(z) function, in FORTRAN. Participants explore methods for coding this mathematical function and share resources and personal experiences related to its implementation.

Discussion Character

  • Technical explanation
  • Exploratory

Main Points Raised

  • One participant inquires about inserting the Li_2(z) polylogarithm function into FORTRAN.
  • Another participant suggests that if the function is not available in a library, the user would need to write it themselves and offers to assist if the user shares their current progress.
  • A third participant references a specific algorithm for computing the polylogarithm function and offers to share their FORTRAN code for dilogarithm and trilogarithm functions based on that algorithm, noting that they have verified its accuracy using Mathematica.

Areas of Agreement / Disagreement

Participants generally agree that the polylogarithm function needs to be implemented manually if not available in existing libraries, but there is no consensus on the best approach or specific implementation details.

Contextual Notes

The discussion does not clarify the specific mathematical properties or definitions of the polylogarithm function that may be necessary for implementation, nor does it address potential complexities in coding it for different arguments.

bulash
Messages
4
Reaction score
0
Hi everyone,

Anyone knows how can I insert a polylogarithm function to FORTRAN? I am trying to put Li_2(z) polylogarithm function to my equation.

Thank you in advance.

bulash.
 
Technology news on Phys.org
You'd have to write the function, if you do not have it in a library of functions.
If you need help with the definition of the function, check the following site:
http://en.wikipedia.org/wiki/Polylogarithm
If you have difficulties with writing the function, you can post what you've got, and we will then know how we can help.
 
OK. Thank you very much!
 
A good reference for a polylogarithm function algorithm is the following:
Note on fast polylogarithm computation
File Format: PDF/Adobe Acrobat - View as HTML
Abstract: The polylogarithm function Li ... assumed that −π < arg z ≤ π, whence the analytic continuation with proper branch cut ...
people.reed.edu/~crandall/papers/Polylog.pdf - Similar pages
by RE Crandall -

If you are interested please send me an email (rashore1@yahoo.com) and I will then send you copies of the FORTRAN codes I wrote to calculate the dilogarithm and trilogarithm functions of complex argument based on Crandall's algorithm. I've checked them using Mathematica and they work quite well.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 17 ·
Replies
17
Views
7K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 17 ·
Replies
17
Views
6K
  • · Replies 37 ·
2
Replies
37
Views
5K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 4 ·
Replies
4
Views
8K
  • · Replies 9 ·
Replies
9
Views
2K