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

Marcum Q Function not implemented correctly. #1047

Open
vahokie02 opened this issue Nov 29, 2023 · 1 comment
Open

Marcum Q Function not implemented correctly. #1047

vahokie02 opened this issue Nov 29, 2023 · 1 comment

Comments

@vahokie02
Copy link

There is significant error in SpecialFunctions.MarcumQ (well outside the stated target accuracy of 1.0e-11). There is a suggested technique to get the correct answer in a comment to #1019 (now closed). I think the implementation in SpecialFunctions should be fixed. Here's a plot to show the error for an example case.

marcumq

@delicioustuna
Copy link
Contributor

If you want to get a value that matches a matlab function, change the argument as follows

SpecialFunctions.MarcumQ(m, 0.5x^2, 0.5y^2)

Computation of the Marcum Q-function

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