Skip to content

MathMore: Add Lambert W functions#8496

Merged
lmoneta merged 1 commit intoroot-project:masterfrom
stephanlachnit:p/lambert-w
Jul 21, 2021
Merged

MathMore: Add Lambert W functions#8496
lmoneta merged 1 commit intoroot-project:masterfrom
stephanlachnit:p/lambert-w

Conversation

@stephanlachnit
Copy link
Copy Markdown
Contributor

@stephanlachnit stephanlachnit commented Jun 21, 2021

This Pull request:

Changes or fixes:

Adds the Lambert W function to MathMore using GSL.

One question: I'm not sure what some of the docstrings in the source file mean.
I copied these from other functions:

// [5.2.1.18] Laguerre polynomials
// (26.x.11)

Does the first one specify the version the function is introduced? What does the second number specify?

I tested it and it works, the only thing missing are the docstrings.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

This PR fixes #8471.

/cc @lmoneta

@phsft-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@lmoneta
Copy link
Copy Markdown
Member

lmoneta commented Jul 1, 2021

@phsft-bot build !

@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@lmoneta
Copy link
Copy Markdown
Member

lmoneta commented Jul 1, 2021

@phsft-bot build

@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@lmoneta
Copy link
Copy Markdown
Member

lmoneta commented Jul 1, 2021

Thank you for the PR. @stephanlachnit Is it completed and ready to be reviewed ?

The numbers in the doc, they are probably some and tags used in some past documentation of the Math libraries. I think they can be removed now since they are not used.

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-debian10-i386/cxx14.
Running on pcepsft11.dyndns.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@stephanlachnit
Copy link
Copy Markdown
Contributor Author

Thank you for the PR. @stephanlachnit Is it completed and ready to be reviewed ?

The numbers in the doc, they are probably some and tags used in some past documentation of the Math libraries. I think they can be removed now since they are not used.

Ok thanks. I'll remove the numbers and rebase. Else the code is ready to be reviewed, I tested the changes locally and added unit tests.

@stephanlachnit stephanlachnit marked this pull request as ready for review July 3, 2021 12:30
@stephanlachnit stephanlachnit changed the title Add Lambert W function to MathMore MathMore: Add Lambert W functions Jul 3, 2021
@stephanlachnit
Copy link
Copy Markdown
Contributor Author

@lmoneta Rebased and updated docs, ready to review now.

This add the Lambert W functions for branch 0 and branch -1 via GSL.

Signed-off-by: Stephan Lachnit <[email protected]>
@lmoneta
Copy link
Copy Markdown
Member

lmoneta commented Jul 5, 2021

@phsft-bot build

@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-ubuntu16/nortcxxmod.
Running on sft-ubuntu-1604-3.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@phsft-bot
Copy link
Copy Markdown

Build failed on ROOT-debian10-i386/cxx14.
Running on pcepsft11.dyndns.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Failing tests:

@stephanlachnit
Copy link
Copy Markdown
Contributor Author

@lmoneta friendly ping :) I don't the think the failing test are connected to the PR, but I can't see the logs.

Copy link
Copy Markdown
Member

@lmoneta lmoneta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ! Thank you for the contribution. .
I think we can merge it in the ROOT master

@lmoneta lmoneta merged commit 1ecaec2 into root-project:master Jul 21, 2021
@stephanlachnit stephanlachnit deleted the p/lambert-w branch July 21, 2021 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Lambert W function to TMath

4 participants