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

Add LambertW trait for evaluation of Lambert W function #16

Merged
merged 5 commits into from
Aug 9, 2024

Conversation

JSorngard
Copy link
Contributor

@JSorngard JSorngard commented Aug 8, 2024

This PR adds the LambertW trait for evaluation of the Lambert W function, and implements it for f64 by delegating to the lambert_w crate.

This partially implements #14, as it still lacks f32 support.

It currently does not support using the standard library instead of libm, since that would require disabling the std feature when this crate enabled the no_std feature.

Cargo.toml Show resolved Hide resolved
src/omega.rs Outdated Show resolved Hide resolved
src/omega.rs Outdated Show resolved Hide resolved
src/omega.rs Outdated Show resolved Hide resolved
src/omega.rs Outdated Show resolved Hide resolved
src/omega.rs Outdated Show resolved Hide resolved
@JSorngard
Copy link
Contributor Author

I think that should be all the changes!
Let me know if there's anything else.

@JSorngard JSorngard changed the title Add Omega trait for evaluation of Lambert W function Add LambertW trait for evaluation of Lambert W function Aug 9, 2024
@IvanUkhov IvanUkhov merged commit 685af3f into stainless-steel:main Aug 9, 2024
3 checks passed
@IvanUkhov
Copy link
Member

Thank you! Made a few cosmetic adjustments on main.

@JSorngard JSorngard deleted the lambert_w branch September 18, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants