<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: mtantaoui</title><link>https://news.ycombinator.com/user?id=mtantaoui</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sat, 18 Apr 2026 09:23:33 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=mtantaoui" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[Show HN: Integrate – a Rust crate for numerical integration (+ an mdBook guide)]]></title><description><![CDATA[
<p>I recently built Integrate, a Rust crate designed to make modular integration in Rust projects smoother and more ergonomic. If you've ever struggled with structuring Rust applications or composing independent modules cleanly, this crate might be useful for you.<p>To make adoption easier, I’ve written a comprehensive mdBook that explains how Integrate works, real-world use cases, and best practices:
 <a href="https://mtantaoui.github.io/Integrate/" rel="nofollow">https://mtantaoui.github.io/Integrate/</a><p>I’d love to get feedback from the Rust community! Does this approach make sense? Are there features or pain points you think should be covered?<p>Crate on crates.io: <a href="https://crates.io/crates/integrate" rel="nofollow">https://crates.io/crates/integrate</a>
Source code: <a href="https://github.com/mtantaoui/Integrate" rel="nofollow">https://github.com/mtantaoui/Integrate</a><p>Looking forward to hearing your thoughts!</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=43488933">https://news.ycombinator.com/item?id=43488933</a></p>
<p>Points: 5</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 26 Mar 2025 23:57:56 +0000</pubDate><link>https://mtantaoui.github.io/Integrate/</link><dc:creator>mtantaoui</dc:creator><comments>https://news.ycombinator.com/item?id=43488933</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43488933</guid></item><item><title><![CDATA[New comment by mtantaoui in "Show HN: Rust library for numerical integration of real-valued functions"]]></title><description><![CDATA[
<p>Thanks! That’s awesome to hear—I’d love to see how your Raku numerical integration project turns out!<p>You can email me if you want to, I'll be happy to help.</p>
]]></description><pubDate>Tue, 19 Nov 2024 17:21:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=42185883</link><dc:creator>mtantaoui</dc:creator><comments>https://news.ycombinator.com/item?id=42185883</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42185883</guid></item><item><title><![CDATA[New comment by mtantaoui in "Show HN: Rust library for numerical integration of real-valued functions"]]></title><description><![CDATA[
<p>for ]-inf, inf[ integrals, you can use Gauss Hermite method, just keep in mind to multiply your function with exp(x^2).<p><pre><code>    use integrate::{
        gauss_quadrature::hermite::gauss_hermite_rule,
    };
    use statrs::distribution::{Continuous, Normal};

    fn dnorm(x: f64) -> f64 {
        Normal::new(0.0, 1.0).unwrap().pdf(x)* x.powi(2).exp()
    }

    fn main() {
        let n: usize = 170;
        let result = gauss_hermite_rule(dnorm, n);
        println!("Result: {:?}", result);
    }

</code></pre>
I got Result: 1.0000000183827922.</p>
]]></description><pubDate>Tue, 19 Nov 2024 17:01:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=42185618</link><dc:creator>mtantaoui</dc:creator><comments>https://news.ycombinator.com/item?id=42185618</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42185618</guid></item><item><title><![CDATA[New comment by mtantaoui in "Show HN: Rust library for numerical integration of real-valued functions"]]></title><description><![CDATA[
<p>this was mainly to use an Iteration free method in this paper: <a href="https://www.cfm.brown.edu/faculty/gk/APMA2560/Handouts/GL_quad_Bogaert_2014.pdf" rel="nofollow">https://www.cfm.brown.edu/faculty/gk/APMA2560/Handouts/GL_qu...</a><p>this method is much faster and simpler.</p>
]]></description><pubDate>Tue, 19 Nov 2024 16:55:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=42185548</link><dc:creator>mtantaoui</dc:creator><comments>https://news.ycombinator.com/item?id=42185548</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42185548</guid></item><item><title><![CDATA[Show HN: Rust library for numerical integration of real-valued functions]]></title><description><![CDATA[
<p>Integrate is a fast, small, lightweight Rust library for performing numerical integration of real-valued functions. It is designed to integrate functions, providing a simple and efficient way to approximate definite integrals using various numerical methods.<p>Integrate supports a variety of numerical integration techniques:
- Newton-Cotes methods:<p><pre><code>  - Rectangle Rule.
  - Trapezoidal Rule.
  - Simpson's Rule.
  - Newton's 3/8 Rule.
</code></pre>
- Gauss quadrature methods:<p><pre><code>  - Gauss-Legendre.
  - Gauss-Laguerre.
  - Gauss-Hermite.
  - Gauss-Chebyshev First Kind.
  - Gauss-Chebyshev Second Kind.
</code></pre>
- Adaptive Methods:<p><pre><code>  - Adaptive Simpson's method
</code></pre>
- Romberg’s method.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=42182784">https://news.ycombinator.com/item?id=42182784</a></p>
<p>Points: 126</p>
<p># Comments: 43</p>
]]></description><pubDate>Tue, 19 Nov 2024 12:41:08 +0000</pubDate><link>https://github.com/mtantaoui/Integrate</link><dc:creator>mtantaoui</dc:creator><comments>https://news.ycombinator.com/item?id=42182784</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42182784</guid></item></channel></rss>