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

Adding delta_lambda_tilde and conversions #4847

Merged
merged 8 commits into from
Sep 9, 2024
Merged

Adding delta_lambda_tilde and conversions #4847

merged 8 commits into from
Sep 9, 2024

Conversation

aleynaakyuz
Copy link
Contributor

This pull request adds 3 new function.

  1. The first function returns the delta_lambda_tilde parameter given in this paper https://journals.aps.org/prd/pdf/10.1103/PhysRevD.91.043002 as equation 15.
  2. The second and third functions are conversions for lambda1 and lambda2 parameter by using delta_lambda_tilde and lambda_tilde functions.

@@ -435,6 +435,65 @@ def lambda_tilde(mass1, mass2, lambda1, lambda2):
p2 = (1 - 4 * eta)**0.5 * (1 + 9 * eta - 11 * eta ** 2.0) * (ldiff)
return formatreturn(8.0 / 13.0 * (p1 + p2), input_is_array)

def delta_lambda_tilde(mass1, mass2, lambda1, lambda2):
m1, m2, lambda1, lambda2, input_is_array = ensurearray(
Copy link
Member

Choose a reason for hiding this comment

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

Please add the documentation for each function.

@ahnitz ahnitz merged commit d520f7f into gwastro:master Sep 9, 2024
30 checks passed
prayush pushed a commit to prayush/pycbc that referenced this pull request Nov 21, 2024
* adding delta_lambda_tilde and conversions

* style fixes

* adding documentation

* style fixes

* style fixes

* style fixes

* style fixes

* documentation

---------

Co-authored-by: Aleyna Akyuz <aleyna@Aleyna-MBP-5.lan>
Co-authored-by: Aleyna Akyuz <aleyna@Aleyna-MacBook-Pro-5.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants