Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derivatives of exponential integrals #321

Closed
oxinabox opened this issue Jun 1, 2021 · 4 comments
Closed

Derivatives of exponential integrals #321

oxinabox opened this issue Jun 1, 2021 · 4 comments

Comments

@oxinabox
Copy link
Contributor

oxinabox commented Jun 1, 2021

Moving this from JuliaDiff/ChainRules.jl#292 since the code now lives here.

@stevengj said:

Just added to SpecialFunctions.jl: #236

The derivative with respect to x is a simple recurrence: https://en.wikipedia.org/wiki/Exponential_integral#Derivatives

@stevengj stevengj changed the title Derivatives with respect to expodential integrals Derivatives of exponential integrals Jun 1, 2021
@stevengj
Copy link
Member

stevengj commented Jun 5, 2021

Closing based on #328. (Derivatives with respect to the order aren't going to happen for a long time, if ever…)

@stevengj stevengj closed this as completed Jun 5, 2021
@giordano
Copy link
Member

giordano commented Jun 5, 2021

Derivatives with respect to the order aren't going to happen for a long time

Out of curiosity, what'd be the meaning of the derivative with respect to a discrete parameter? How one would go about that? By extending the domain from N to R?

@stevengj
Copy link
Member

stevengj commented Jun 5, 2021

Out of curiosity, what'd be the meaning of the derivative with respect to a discrete parameter? How one would go about that? By extending the domain from N to R?

It's not a discrete parameter. Arbitrary complex order is well defined and supported:

julia> expint(1, 3)
0.013048381094197039

julia> expint(1.01, 3)
0.01301964756083072

julia> expint(1.01+0.4im, 3)
0.012931671071467582 - 0.0011410591248868325im

The extension isn't even very complicated — the definition can be straightforwardly evaluated for non-integer order
image

@giordano
Copy link
Member

giordano commented Jun 5, 2021

Oh, ok, I didn't check, but the name "order" made me think it was a discrete order. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants