Skip to content
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/asinf #1950

Closed
wants to merge 35 commits into from
Closed

feat: add math/base/special/asinf #1950

wants to merge 35 commits into from

Conversation

gunjjoshi
Copy link
Member

@gunjjoshi gunjjoshi commented Mar 18, 2024

Resolves #1944.

Description

What is the purpose of this pull request?

This pull request:

  • adds math/base/special/asinf, which computes the arcsine of a single precision floating point number.

Related Issues

Does this pull request have any related issues?

This pull request:

Questions

Any questions for reviewers of this pull request?

No.

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

@stdlib-bot stdlib-bot added the Math Issue or pull request specific to math functionality. label Mar 18, 2024
Signed-off-by: GUNJ JOSHI <[email protected]>
Signed-off-by: GUNJ JOSHI <[email protected]>
Signed-off-by: GUNJ JOSHI <[email protected]>
Signed-off-by: GUNJ JOSHI <[email protected]>
Signed-off-by: GUNJ JOSHI <[email protected]>
Signed-off-by: GUNJ JOSHI <[email protected]>
Signed-off-by: GUNJ JOSHI <[email protected]>
@gunjjoshi
Copy link
Member Author

#1953 must be merged before this one. In this PR, I have hardcoded the value for pi/2. Once the constant is added from #1953, we can use that here instead of the hardcoded value.

Signed-off-by: GUNJ JOSHI <[email protected]>
@Pranavchiku Pranavchiku added Feature Issue or pull request for adding a new feature. Native Addons Issue involves or relates to Node.js native add-ons. status: Blocked Issue or pull request which is current blocked. C Issue involves or relates to C. labels Mar 19, 2024
@gunjjoshi
Copy link
Member Author

This PR can be reviewed now.

@Planeshifter Planeshifter added Needs Review A pull request which needs code review. and removed status: Blocked Issue or pull request which is current blocked. labels Mar 21, 2024
@Planeshifter Planeshifter self-requested a review March 21, 2024 01:40
Copy link
Member

@Planeshifter Planeshifter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left two comments; otherwise this looks all good and should be ready to merge soon! Thank you!

@gunjjoshi
Copy link
Member Author

Made changes suggested by you @kgryte. Along with that, modified the JS implementation. Also, what changes do we need to make in evalpoly ?

@kgryte
Copy link
Member

kgryte commented Mar 24, 2024

@gunjjoshi I've updated evalpoly-compile and evalrational-compile to now support single-precision floating-point emulation. The latest develop has the latest changes. If you merge in those changes, you should be able to now generate the correct poly_p.js file.

@gunjjoshi
Copy link
Member Author

gunjjoshi commented Mar 24, 2024

Hey @kgryte, while incorporating changes, after the latest merge, the file lib/node_modules/@stdlib/random/base/minstd-shuffle/README.md is having some errors in examples. And some tests too, along with that, which are unrelated to this package. This is completely out of the context for this package.

@kgryte
Copy link
Member

kgryte commented Mar 24, 2024

@gunjjoshi Looks like something went awry with your merge, as now changes unrelated to this PR are showing up on GitHub.

You may be best to just open up a fresh PR with the proposed changes to asinf.

@kgryte
Copy link
Member

kgryte commented Mar 24, 2024

Did you do an explicit git pull upstream develop into your local branch? Or how did you attempt to merge in the latest changes?

@gunjjoshi
Copy link
Member Author

To merge the latest changes, I did a git pull on develop, and then git merge develop on asinf branch.
What went wrong with me here @kgryte ?

Sure, I'll make a fresh PR for this.

@kgryte
Copy link
Member

kgryte commented Mar 25, 2024

From your commit history, I am not seeing that you pushed up the merge commit. https://github.com/stdlib-js/stdlib/pull/1950/commits

@gunjjoshi
Copy link
Member Author

Yes @kgryte, I only committed those files which I changed, and not all of them.

@kgryte
Copy link
Member

kgryte commented Mar 25, 2024

Okay. When you merge locally, you still need to push up to your remote fork on the branch you are working on the merge commit. That merge commit is what's missing in your Git history for this branch.

@kgryte
Copy link
Member

kgryte commented Mar 25, 2024

Can you provide the sequence of bash commands you used when merging and pushing to your remote?

@gunjjoshi
Copy link
Member Author

Okay, getting it now.

The sequence of commands I used were :

  • git checkout develop
  • git pull
  • git checkout asinf
  • git merge develop
    (Then, I only staged the files that I had modified.)
  • git commit -m "message"
  • git push

@kgryte
Copy link
Member

kgryte commented Mar 25, 2024

Yeah, you want to first commit any changes files, then merge, resolve any potential conflicts, commit the merge, and then push.

@kgryte
Copy link
Member

kgryte commented Mar 25, 2024

Regardless, you should be able to simply copy over the changed files to a new branch, push that up, and open a fresh PR.

@gunjjoshi
Copy link
Member Author

Understood it now. Thanks for sharing.
Yes, I will be copying over the changes to a new branch and will make a fresh PR.

@gunjjoshi
Copy link
Member Author

Made a new PR at #2030 @kgryte. We can close this now.

@kgryte kgryte closed this Mar 25, 2024
@gunjjoshi gunjjoshi deleted the asinf branch March 25, 2024 09:57
@Planeshifter Planeshifter removed the Needs Review A pull request which needs code review. label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Issue involves or relates to C. Feature Issue or pull request for adding a new feature. Math Issue or pull request specific to math functionality. Native Addons Issue involves or relates to Node.js native add-ons. Needs Changes Pull request which needs changes before being merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC]: add math/base/special/asinf
5 participants