stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

feat: add `math/base/special/acosdf`

Open aayush0325 opened this issue 1 year ago • 4 comments

Resolves part of #649.

Description

What is the purpose of this pull request?

This pull request:

  • Resolves a part of #649 by adding the C implementation for math/base/special/acosdf.

Related Issues

Does this pull request have any related issues?

This pull request:

  • resolves part of #649

Questions

Any questions for reviewers of this pull request?

Open to reviews!!

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

aayush0325 avatar Oct 17 '24 08:10 aayush0325

@gunjjoshi would love your inputs on this, is it okay if i had to increase the tolerance in the tests a bit to accommodate single-precision floating point numbers?

aayush0325 avatar Oct 17 '24 09:10 aayush0325

@gunjjoshi would love your inputs on this, is it okay if i had to increase the tolerance in the tests a bit to accommodate single-precision floating point numbers?

I think the tolerance levels that we have here, i.e., 2.8 * EPS should be fine, as compared to the 1.4 * EPS of the double-precision equivalent, as we can expect a slight precision loss when we transition from double to single-precision floating-point numbers.

gunjjoshi avatar Oct 17 '24 16:10 gunjjoshi

that's what i thought while increasing the tolerance, do you think there's any other stuff that needs to be done in order to merge this @gunjjoshi , would love to work on this

aayush0325 avatar Oct 17 '24 17:10 aayush0325

I've made all the required changes from code review, thank you for your time @gunjjoshi , @kgryte .

aayush0325 avatar Oct 18 '24 10:10 aayush0325

added the changes @gunjjoshi

aayush0325 avatar Oct 22 '24 12:10 aayush0325

@gunjjoshi Would you mind doing one more pass over this PR?

kgryte avatar Oct 26 '24 07:10 kgryte

Only a single change needed, looks good otherwise.

gunjjoshi avatar Oct 26 '24 08:10 gunjjoshi

is there anything that is left to do here @gunjjoshi ? , would be happy to implement

aayush0325 avatar Oct 28 '24 13:10 aayush0325

PR Commit Message

feat: add `math/base/special/acosdf`

PR-URL: https://github.com/stdlib-js/stdlib/pull/3015
Ref: https://github.com/stdlib-js/stdlib/issues/649

Co-authored-by: Athan Reines <[email protected]>
Signed-off-by: Athan Reines <[email protected]>
Reviewed-by: Philipp Burckhardt <[email protected]> 
Reviewed-by: Gunj Joshi <[email protected]>
Reviewed-by: Athan Reines <[email protected]>

Please review the above commit message and make any necessary adjustments.

stdlib-bot avatar Oct 29 '24 13:10 stdlib-bot