FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: correct misleading error message in MidpointIntegration by shaked-shlomo · Pull Request #1902 · TheAlgorithms/JavaScript · GitHub

Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .js  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion Maths/MidpointIntegration.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function integralEvaluation(N, a, b, func) {
throw new TypeError('Expected integer N and finite a, b')
}
if (N <= 0) {
throw Error('N has to be >= 2')
throw Error('N has to be > 0')
} // check if N > 0
if (a > b) {
throw Error('a must be less or equal than b')
Expand Down
Loading

Back | FazBrowse Home | New Git URL