-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Implement symbolic confluent hypergeometric functions #14896
Comments
comment:1
Attachment: trac_14896.patch.gz Whittaker functions can be easily implemented similarly; the reason I didn't include them in this patch is because the Maxima conversion is a bit more complicated. |
Attachment: trac_14896_2.patch.gz |
comment:2
Last patch, to be applied independently, adds LaTeX names which I forgot in the original. |
Changed keywords from none to hypergeometric |
comment:8
This one does not have a valid git branch attached to it... So, I have set it to "needs work". I am willing to review this ticket once there is a valid git branch. |
comment:9
is this a dupe of #2516? |
comment:10
No. Confluent hypergeometric functions are a specific type of hypergeometric function, which are solutions to Kummer's differential equation. Thanks for offering to review, Kannappan! I'm new to the Git workflow, but I'll try to create the branch as soon as possible. |
Commit: |
comment:11
I've created a git branch and fixed a few failing doctests. There are still many functions that do not have docstrings. Last 10 new commits:
|
Branch: u/jkeitel/ticket/14896 |
Changed branch from u/jkeitel/ticket/14896 to u/rws/ticket/14896 |
comment:13
Documentation as is looks good. I fixed a newly appearing doctest fail. Last 10 new commits:
|
comment:14
Seems I found a Maxima interface problem with
Of course that should be |
comment:15
Replying to @rwst:
I'm not so sure: according to the maxima documentation:
in sage, gamma(a,z) is documented to be the upper gamma function, which gets translated appropriately. We might not have a lower gamma function yet. |
comment:16
Good catch.
Maybe we can make it by gamma - upper incomplete? |
comment:17
Replying to @kcrisman:
Maybe define it in |
comment:18
If maxima can produce FYI: Mathematica seems to have Gamma[a,z] for upper and Gamma[a,0,z] for lower; Maple seems to have upper Gamma. So it does seem packages have been gravitating to the upper one more than the lower one. However, if that means our confluent hypergeometric functions always end up being translated into a more convoluted expression than a straight gamma_lower would give, we're not doing ourselves favours (e.g., for numerical work: do you really want to evaluate gamma_lower(a,z) as gamma(z)-gamma_upper(a,z) ?) Without strong indications in either direction, I'd be hesitant to make a choice and rather follow the lead of our main underlying engine: implement gamma_lower. |
comment:35
Also needs merge in of updated #16697 and a squash. |
comment:36
Pending because #16697 is pending. |
Changed branch from u/rws/ticket/14896 to u/rws/14896 |
comment:39
Please review/merge #16697 first (its commit metadata is missing here). |
comment:40
Ralf, I'm trying to merge existing commits to a branch that already includes #16697 but I'm getting errors:
Am I doing something wrong or do these commits need updating after all this time? Would like to get this one reviewed. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:42
Still getting an error:
|
comment:43
As you can see at the top of the ticket the branch cleanly merges with beta5. So you seem to want to merge it with a different version? And why merge at all? Just |
comment:44
I assumed I needed keep track of changes from#16697 manually, but clearly Trac does that automatically. Running a
This is the same file that had a merge conflict. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:46
I updated to beta6 and had a merge conflict there too which should be resolved now. Let's try again, please. |
Changed reviewer from Jan Keitel, Ralf Stephan, Nils Bruin to Jan Keitel, Ralf Stephan, Nils Bruin, Paul Masson |
comment:47
Doctests all pass. Documentation builds. Random numeric testing accurate and both functions plot. Symbolic behavior as expected. Looks good to me. |
comment:48
Thanks for the review. |
Changed branch from u/rws/14896 to |
This patch implements the Kummer confluent hypergeometric functions
hypergeometric_M
andhypergeometric_U
(superseding the previous numerical-only version), complete with numeric evaluation, simplification, and transformation to generalized hypergeometric functions.Depends on #2516
Depends on #16697
CC: @kcrisman @benjaminfjones
Component: symbolics
Keywords: hypergeometric, kummer
Author: Eviatar Bach, Ralf Stephan
Branch/Commit:
23a5c65
Reviewer: Jan Keitel, Ralf Stephan, Nils Bruin, Paul Masson
Issue created by migration from https://trac.sagemath.org/ticket/14896
The text was updated successfully, but these errors were encountered: