-
-
Notifications
You must be signed in to change notification settings - Fork 620
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add math/base/special/bernoullif
#3037
base: develop
Are you sure you want to change the base?
Conversation
lib/node_modules/@stdlib/math/base/special/bernoullif/lib/main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/lib/bernoullif.json
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/src/main.c
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/manifest.json
Outdated
Show resolved
Hide resolved
Co-authored-by: Athan <[email protected]> Signed-off-by: Gururaj Gurram <[email protected]>
lib/node_modules/@stdlib/math/base/special/bernoullif/manifest.json
Outdated
Show resolved
Hide resolved
@gunjjoshi This is not a problem exclusively with this PR, since it also applies to |
@Planeshifter Thanks for catching this. After digging for some time, I found that there is a mix of opinions on whether Overall, I think, it would be better if we too, use |
But yes, NIST prescribes the convention to use |
Let's go ahead and use 1/2. This will match SymPy and is also used as a convention in R. As commented elsewhere, how much the choice actually matters in practice is subject to some debate. In this case, I'm more inclined to go with Knuth. |
Similar to the changes proposed in #3108, we'll want to make similar changes here. |
…lli` BREAKING CHANGE: update return value for `n=1` In order to migrate and preserve prior behavior, users should special case `n=1` and return `0`. The change in this commit aligns return values with SymPy and R; although, other libraries and envs choose to return `-0.5`. PR-URL: #3108 Ref: #3037 (comment) Co-authored-by: Athan Reines <[email protected]> Reviewed-by: Athan Reines <[email protected]> Signed-off-by: Gunj Joshi <[email protected]> Signed-off-by: Athan Reines <[email protected]>
Refactored it as suggested. |
/stdlib merge |
lib/node_modules/@stdlib/math/base/special/bernoullif/README.md
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/src/main.c
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/src/main.c
Outdated
Show resolved
Hide resolved
@gururaj1512 Looks like this PR still has failing tests. We'll need to get those resolved before further review and subsequent merge. |
Signed-off-by: Gururaj Gurram <[email protected]>
Coverage Report
The above coverage report was generated for the changes in this PR. |
Resolved. |
lib/node_modules/@stdlib/math/base/special/bernoullif/benchmark/benchmark.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/benchmark/c/native/benchmark.c
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/docs/repl.txt
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/docs/types/index.d.ts
Outdated
Show resolved
Hide resolved
...e_modules/@stdlib/math/base/special/bernoullif/include/stdlib/math/base/special/bernoullif.h
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/lib/main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/lib/main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/lib/main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/lib/native.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/src/main.c
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/test/test.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/test/test.native.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/test/test.native.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/test/test.native.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/math/base/special/bernoullif/test/test.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Gunj Joshi <[email protected]>
…t.native.js Signed-off-by: Gunj Joshi <[email protected]>
Progresses #649
Description
math/base/special/bernoullif
, which would be the single-precision equivalent for math/base/special/bernoullif.Related Issues
This pull request:
Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers