Skip to content

Commit

Permalink
Merge pull request #256 from pkucode/main
Browse files Browse the repository at this point in the history
chore: fix some comments
  • Loading branch information
avhz authored Aug 7, 2024
2 parents a8dc2f4 + 0a2e2bf commit cbd8f87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/autodiff/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Graph {
graph
}

/// Add a new variable to to the graph.
/// Add a new variable to the graph.
/// Returns a new `Variable` instance (the contents of a vertex).
#[inline]
pub fn var(&self, value: f64) -> Variable {
Expand Down
2 changes: 1 addition & 1 deletion src/math/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//! This module contains functions for numerical integration.
//!
//! The Tanh-Sinh quadrature is used for the integration.
//! This method uses a the hyperbolic trig functions to transform
//! This method uses the hyperbolic trig functions to transform
//! the integral over $[-1, +1]$ to an integral over $\mathbb{R} = (-\infty, +\infty)$.
//!
//! We have the approximation:
Expand Down

0 comments on commit cbd8f87

Please sign in to comment.