-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
improving rules for Bessel functions with half integer indices #816
Conversation
LGTM. I am glad to see more code being written in Mathics as opposed to Python as the first choice. Also my personal taste would be to write more comments or links to references as was done in some of the discussion in the previous PR. If it wasn't clear back then it might not be clear to someone in the future either. |
And more doctests showing this aspect off would be nice too, as is done on the WMA site. If we have this goodness in there, we might advertise it a little more. |
3942e7d
to
62e3d44
Compare
Here I added a couple of extra rules, including the integral form for BesselJ[0,z]. This can be extended in the future. |
mathics/autoload/rules/Bessel.m
Outdated
|
||
|
||
Unprotect[BesselI] | ||
BesselI[1/2,z_] := (Sqrt[2/Pi] Sinh[z]) / Sqrt[z] | ||
BesselI[-1/2,z_] := (Sqrt[2/Pi] Cosh[z]) / Sqrt[z] | ||
(*Rayleight's formulas for half-integer indices*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rayleight -> Rayleigh
mathics/autoload/rules/Bessel.m
Outdated
Protect[BesselI] | ||
|
||
Unprotect[BesselK] | ||
(*Rayleight's formulas for half-integer indices*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eight -> eigh
and below.
LGTM - see spelling typos. Much improved. Thanks! |
This PR improves the rules for Bessel functions of half integer index.