Skip to content

Commit

Permalink
Merge pull request #66 from JSorngard/update_lambert_w_to_040
Browse files Browse the repository at this point in the history
Update `lambert_w` crate to version 0.4.0
  • Loading branch information
Axect authored Jul 31, 2024
2 parents 618264b + bbc6fe6 commit 85bdf28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ serde = { version = "1.0", features = ["derive"], optional = true }
json = { version = "0.12", optional = true }
arrow2 = { version = "0.18", features = ["io_parquet", "io_parquet_compression"], optional = true }
num-complex = { version = "0.4", optional = true }
lambert_w = { version = "0.3.0", default-features = false, features = ["24bits", "50bits"] }
lambert_w = { version = "0.4.0", default-features = false, features = ["24bits", "50bits"] }

[package.metadata.docs.rs]
rustdoc-args = [ "--html-in-header", "katex-header.html", "--cfg", "docsrs"]
Expand Down
2 changes: 0 additions & 2 deletions src/special/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ pub fn lambert_w0(z: f64, mode: LambertWAccuracyMode) -> f64 {
LambertWAccuracyMode::Precise => lambert_w::lambert_w_0(z),
LambertWAccuracyMode::Simple => lambert_w::sp_lambert_w_0(z),
}
.unwrap_or(f64::NAN)
}

/// The secondary branch of the Lambert W function, W_-1(`z`).
Expand All @@ -155,7 +154,6 @@ pub fn lambert_wm1(z: f64, mode: LambertWAccuracyMode) -> f64 {
LambertWAccuracyMode::Precise => lambert_w::lambert_w_m1(z),
LambertWAccuracyMode::Simple => lambert_w::sp_lambert_w_m1(z),
}
.unwrap_or(f64::NAN)
}

/// Decides the accuracy mode of the Lambert W functions.
Expand Down

0 comments on commit 85bdf28

Please sign in to comment.