Skip to content

Commit 0f0868e

Browse files
committed
Merge branch 'release' into dev
2 parents 703327f + 2bf4c63 commit 0f0868e

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "peroxide"
3-
version = "0.37.1"
3+
version = "0.37.2"
44
authors = ["axect <[email protected]>"]
55
edition = "2018"
66
description = "Rust comprehensive scientific computation library contains linear algebra, numerical analysis, statistics and machine learning tools with farmiliar syntax"

RELEASES.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Release 0.37.2 (2024-04-16)
2+
3+
- Do not include legend box if there is no legend ([#58](https://github.com/Axect/Peroxide/pull/58)) (Thanks to [@GComitini](https://github.com/GComitini))
4+
- Add `rtol` field to `BroydenMethod`
5+
- Implement high-level macros for root finding
6+
- `bisection!(f, (a,b), max_iter, tol)`
7+
- `newton!(f, x0, max_iter, tol)` (require `#[ad_function]` attribute)
8+
- `secant!(f, (a,b), max_iter, tol)`
9+
- `false_position!(f, (a,b), max_iter, tol)`
10+
111
# Release 0.37.1 (2024-04-15)
212

313
- Implement `BrodenMethod`: Broyden's method (`I>=1, O>=1, T=([f64; I], [f64; I])`)

examples/broyden_test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use peroxide::numerical::root::{Pt, Intv};
33

44
fn main() -> Result<(), Box<dyn std::error::Error>> {
55
let problem = Quadratic;
6-
let broyden = BroydenMethod { max_iter: 100, tol: 1e-6 };
6+
let broyden = BroydenMethod { max_iter: 100, tol: 1e-6, rtol: 1e-6 };
77
let root = broyden.find(&problem)?;
88
let result = problem.function(root)?;
99

src/numerical/root.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ impl RootFinder<1, 1, (f64, f64)> for FalsePositionMethod {
781781
///
782782
/// fn main() -> Result<(), Box<dyn std::error::Error>> {
783783
/// let problem = CircleTangentLine;
784-
/// let broyden = BroydenMethod { max_iter: 100, tol: 1e-6 };
784+
/// let broyden = BroydenMethod { max_iter: 100, tol: 1e-6, rtol: 1e-6 };
785785
///
786786
/// let root = broyden.find(&problem)?;
787787
/// let result = problem.function(root)?;

0 commit comments

Comments
 (0)