Skip to content

Commit

Permalink
starting ome
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiani committed May 31, 2024
1 parent a76221d commit 56a77e4
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/ekore/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ pub mod anomalous_dimensions;
pub mod bib;
mod constants;
pub mod harmonics;
pub mod operator_matrix_elements;
pub mod util;
3 changes: 3 additions & 0 deletions crates/ekore/src/operator_matrix_elements.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! |OME|.
pub mod unpolarized;
3 changes: 3 additions & 0 deletions crates/ekore/src/operator_matrix_elements/unpolarized.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//! The unpolarized |OME| for space-like and time-like kinematics.
pub mod spacelike;
12 changes: 12 additions & 0 deletions crates/ekore/src/operator_matrix_elements/unpolarized/spacelike.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//! The unpolarized, space-like |OME| at various couplings power.
pub mod as1;

// Compute the tower of the singlet |OME|.
// pub fn A_singlet() -> Vec<Complex<f64>>{

// }

// Compute the tower of the non-singlet |OME|.
// pub fn A_non_singlet() -> Vec<Complex<f64>>{

// }
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//! NLO QCD
use num::complex::Complex;

use crate::constants::{CA, CF, TR};
use crate::harmonics::cache::{Cache, K};

/// Compute heavy-heavy |OME| :math:`A_{HH}^{(1)}`
///
/// Defined in Eq. () of .
pub fn A_hh(c: &mut Cache, _nf: u8, L: f64) -> Complex<f64> {
let N = c.n;
let S1m = c.get(K::S1) - 1. / N;
let S2m = c.get(K::S2) - 1. / N.powu(2);
let ahh_l = (2. + N - 3. * N.powu(2)) / (N * (1. + N)) + 4. * S1m;
let ahh = 2.
* (2. + 5. * N + N.powu(2)
- 6. * N.powu(3)
- 2. * N.powu(4)
- 2. * N * (-1. - 2. * N + N.powu(3)) * S1m)
/ (N * (1. + N)).powu(2)
+ 4. * (S1m.powu(2) + S2m);

-CF * (ahh_l * L + ahh)
}

0 comments on commit 56a77e4

Please sign in to comment.