-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
Bug in derivatives of some functions to the index var #21644
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
I have a patch for this issue (at least for gen_laguerre, my copy of sage doesn't have a derivative method for hermite). The bug was in handling the diff_param choice, the 'else' branch had the return value for when diff_param was x, but that means that anything that didn't match The attached patch fixes this (and adds proper handling to laguerre as well) |
Patch to fix issue with gen_laguerre derivative |
comment:3
Attachment: 0001-Fix-derivative-of-gen_laguerre.patch.gz @sagetrac-mafra you should create and post a git branch of your patch to this ticket. Then one that is done, you can put your (real) name as the author and set it to needs review. |
Author: Carlos R. Mafra |
New commits:
|
Commit: |
comment:6
That is fine, thanks. Can you please add a doctest for the fixed behaviour? We add tests for every branch of possible computation. BTW Pynac fixes also get Python doctests, partly in the https://github.com/pynac/sage branches (which get merged with the Pynac upgrade ticket into Sage), and partly with separate Sage tickets. |
comment:7
The hermite fix is in pynac/pynac@20222d0 |
comment:8
However, see #21655 for a later enhancement. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Replying to @rwst:
Ok, I did that now. But I was not sure if I should have rebased the new patch into the previous one or not, and when I decided to push I got an error message saying that I needed to 'pull' Should I have rebased the doctest patch into the previous one? Would that require a 'forced' git push? |
comment:11
The merge commit would not have been necessary if you had done |
Reviewer: Ralf Stephan |
Changed branch from u/mafra/bug_in_derivatives_of_some_functions_to_the_index_var to |
so something is badly wrong with recognizing the diff. parameter. Note only
hermite
is implemented in Pynac.Component: symbolics
Author: Carlos R. Mafra
Branch/Commit:
2decb06
Reviewer: Ralf Stephan
Issue created by migration from https://trac.sagemath.org/ticket/21644
The text was updated successfully, but these errors were encountered: