From 67b63c6d554acf9677398df410a5becc5eca32d7 Mon Sep 17 00:00:00 2001 From: Lucas Gauthier <67895410+lucasgauthier@users.noreply.github.com> Date: Mon, 16 Feb 2026 15:03:10 +0100 Subject: [PATCH 1/3] improve clarity in README regarding mathjs integral support --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 260a9ac..18ab2c0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Complex Function Integral -[`mathjs`](https://mathjs.org) is a powerful library for mathematical operations, including support for complex numbers. Unfortunately, [it does not yet provide a built-in function for computing the integral of a complex function](https://github.com/josdejong/mathjs/discussions/2748). +[`mathjs`](https://mathjs.org) is a powerful library for mathematical operations, including support for complex numbers. Unfortunately, [it does not yet provide a built-in function for computing integrals](https://github.com/josdejong/mathjs/discussions/2748), and in particular it lacks support for complex function integrals. This library fills that gap by providing a simple interface to compute the integral of a complex function over the interval `[0, 1]`. The integral is computed using a simple midpoint Riemann sum with a default of 1000 subdivisions. From 70345f2de716dc1c9c62dfc202db53383dada2e1 Mon Sep 17 00:00:00 2001 From: Lucas Gauthier <67895410+lucasgauthier@users.noreply.github.com> Date: Mon, 16 Feb 2026 15:08:34 +0100 Subject: [PATCH 2/3] break lint (on purpose) --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 93ffe3b..d5d1c70 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import { add, complex, multiply } from 'mathjs' export type ComplexFunction = (t: number) => Complex const INCREMENT = 1e-3 - + /** * Computes the integral of a complex-valued function `f(t)` on `[0, 1]` using: * - a midpoint Riemann sum for improved accuracy over left/right Riemann sums, and From f0565e0a85e6fa240f2ab516ab41ec4b96b8d5dc Mon Sep 17 00:00:00 2001 From: Lucas Gauthier <67895410+lucasgauthier@users.noreply.github.com> Date: Thu, 19 Feb 2026 21:51:52 +0100 Subject: [PATCH 3/3] fix lint --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index d5d1c70..93ffe3b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,7 +6,7 @@ import { add, complex, multiply } from 'mathjs' export type ComplexFunction = (t: number) => Complex const INCREMENT = 1e-3 - + /** * Computes the integral of a complex-valued function `f(t)` on `[0, 1]` using: * - a midpoint Riemann sum for improved accuracy over left/right Riemann sums, and