feat: port exp2 from OpenLibm#10191
Conversation
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
- task: lint_filenames
status: passed
- task: lint_editorconfig
status: passed
- task: lint_markdown
status: na
- task: lint_package_json
status: na
- task: lint_repl_help
status: na
- task: lint_javascript_src
status: passed
- task: lint_javascript_cli
status: na
- task: lint_javascript_examples
status: na
- task: lint_javascript_tests
status: na
- task: lint_javascript_benchmarks
status: na
- task: lint_python
status: na
- task: lint_r
status: na
- task: lint_c_src
status: na
- task: lint_c_examples
status: na
- task: lint_c_benchmarks
status: na
- task: lint_c_tests_fixtures
status: na
- task: lint_shell
status: na
- task: lint_typescript_declarations
status: passed
- task: lint_typescript_tests
status: na
- task: lint_license_headers
status: passed
---
|
👋 Hi there! 👋 And thank you for opening your first pull request! We will review it shortly. 🏃 💨 Getting Started
Next Steps
Running Tests LocallyYou can use # Run tests for all packages in the math namespace:
make test TESTS_FILTER=".*/@stdlib/math/.*"
# Run benchmarks for a specific package:
make benchmark BENCHMARKS_FILTER=".*/@stdlib/math/base/special/sin/.*"If you haven't heard back from us within two weeks, please ping us by tagging the "reviewers" team in a comment on this PR. If you have any further questions while waiting for a response, please join our Zulip community to chat with project maintainers and other community members. We appreciate your contribution! Documentation Links |
|
"Just for extra context: while porting the logic from OpenLibm, I identified a logic error in the original implementation regarding the high word initialization (which led to incorrect results for inputs like exp2(3.0)). I've included the fix and verified it with the full test suite (~5,000 tests). Ready for review whenever a maintainer has a moment!" |
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes. report:
Description
The purpose of this pull request is to provide a JavaScript implementation of
exp2ported from OpenLibm.This pull request:
BIAS).hxwas uninitialized, which led to incorrect results for certain input ranges.Related Issues
This pull request has the following related issues:
Questions
No.
Other
No.
Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was written with assistance from an agentic AI assistant (Antigravity), which helped in refactoring the implementation, identifying/fixing the logic bug, and verifying results against the test suite.
@stdlib-js/reviewers