Commit 2e1ba82
Fix misleading error message in MidpointIntegration
The validation throws when N <= 0, and the docstring states 'N must be > 0',
but the message claimed 'N has to be >= 2'. N = 1 is valid for the midpoint
rule, so the message now matches the actual check.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5c39e87 commit 2e1ba82
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments