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

ENH: Implement intrinsic hypot #3012

Merged
merged 4 commits into from
Dec 29, 2023
Merged

ENH: Implement intrinsic hypot #3012

merged 4 commits into from
Dec 29, 2023

Conversation

Pranavchiku
Copy link
Contributor

@Pranavchiku Pranavchiku commented Dec 27, 2023

Closes #3011, towards #3000

With this PR we can remove comments for hypot

diff --git a/src/stdlib_specialfunctions_gamma.fypp b/src/stdlib_specialfunctions_gamma.fypp
index 29af406..e8ae0e0 100644
--- a/src/stdlib_specialfunctions_gamma.fypp
+++ b/src/stdlib_specialfunctions_gamma.fypp
@@ -470,7 +470,7 @@ contains
 
         end if
 
-!        d = hypot(z2 % re, z2 % im)
+        d = hypot(z2 % re, z2 % im)
         z1 = z2
         m = 0
 

@Pranavchiku Pranavchiku added the stdlib Issues related to compiling fortran-lang/stdlib label Dec 27, 2023
@Pranavchiku Pranavchiku marked this pull request as ready for review December 27, 2023 07:40
Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@certik
Copy link
Contributor

certik commented Dec 29, 2023

Go ahead and resolve the conflicts and merge.

@Pranavchiku Pranavchiku merged commit e48b80a into lfortran:main Dec 29, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Issues related to compiling fortran-lang/stdlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Implement intrinsic hypot
2 participants