-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
crates/ekore/src/anomalous_dimensions/unpolarized/spacelike/aem1.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
//! |LO| |QED|. | ||
use num::complex::Complex; | ||
|
||
use crate::constants::{ed2, eu2, uplike_flavors, CF, NC, TR}; | ||
use crate::harmonics::cache::Cache; | ||
|
||
use crate::anomalous_dimensions::unpolarized::spacelike::as1; | ||
|
||
/// Compute the leading-order photon-quark anomalous dimension. | ||
/// | ||
/// Implements Eq. (2.5) of | ||
pub fn gamma_phq(c: &mut Cache, nf: u8) -> Complex<f64> { | ||
as1::gamma_gq(c, nf) / CF | ||
} | ||
|
||
/// Compute the leading-order quark-photon anomalous dimension. | ||
/// | ||
/// Implements Eq. (2.5) of | ||
pub fn gamma_qph(c: &mut Cache, nf: u8) -> Complex<f64> { | ||
as1::gamma_qg(c, nf) / TR * (NC as f64) | ||
} | ||
|
||
/// Compute the leading-order photon-photon anomalous dimension. | ||
/// | ||
/// Implements Eq. (2.5) of | ||
pub fn gamma_phph(_c: &mut Cache, nf: u8) -> Complex<f64> { | ||
let nu = uplike_flavors(nf); | ||
let nd = nf - nu; | ||
(4.0 / 3.0 * (NC as f64) * ((nu as f64) * eu2 + (nd as f64) * ed2)).into() | ||
} | ||
|
||
/// Compute the leading-order non-singlet QED anomalous dimension | ||
/// | ||
/// Implements Eq. (2.5) of | ||
pub fn gamma_ns(c: &mut Cache, nf: u8) -> Complex<f64> { | ||
as1::gamma_ns(c, nf) / CF | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
use crate::{assert_approx_eq_cmplx, cmplx}; | ||
use num::complex::Complex; | ||
use num::Zero; | ||
const NF: u8 = 5; | ||
|
||
#[test] | ||
fn number_conservation() { | ||
const N: Complex<f64> = cmplx!(1., 0.); | ||
let mut c = Cache::new(N); | ||
let me = gamma_ns(&mut c, NF); | ||
assert_approx_eq_cmplx!(f64, me, Complex::zero(), epsilon = 1e-12); | ||
} | ||
|
||
#[test] | ||
fn quark_momentum_conservation() { | ||
const N: Complex<f64> = cmplx!(2., 0.); | ||
let mut c = Cache::new(N); | ||
let me = gamma_ns(&mut c, NF) + gamma_phq(&mut c, NF); | ||
assert_approx_eq_cmplx!(f64, me, Complex::zero(), epsilon = 1e-12); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters