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

mittleff(0.5,x) returns NaN for large negative x #14

Open
putianyi889 opened this issue Nov 24, 2021 · 2 comments
Open

mittleff(0.5,x) returns NaN for large negative x #14

putianyi889 opened this issue Nov 24, 2021 · 2 comments

Comments

@putianyi889
Copy link

putianyi889 commented Nov 24, 2021

julia> using SpecialFunctions

julia> erfcx.(24:28)
5-element Vector{Float64}:
 0.023487546063682644
 0.022549572432641357
 0.02168358485056291
 0.02088160799042094
 0.020136801964214277

julia> mittleff.(0.5,-24:-1:-28)
5-element Vector{Float64}:
   0.02348754606368264
   0.022549572432641357
   0.021683584850562907
  Inf
 NaN

0.49 and 0.51 have no issue.

I'm using MittagLeffler@0.2.0. I was not able to update it to 0.2.1.

(@v1.6) pkg> add MittagLeffler@0.2.1
    Updating registry at `C:\Users\pty\.julia\registries\General`
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MittagLeffler [9c257583]:
 MittagLeffler [9c257583] log:
 ├─possible versions are: 0.1.1-0.2.0 or uninstalled
 └─restricted to versions 0.2.1 by an explicit requirement — no versions left
@jlapeyre
Copy link
Collaborator

Just saw this. Thanks! Does your code inspired by matlab handle 0.5 correctly ?

@putianyi889
Copy link
Author

Does your code inspired by matlab handle 0.5 correctly ?

yes.

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

2 participants