Skip to main content

BetaFunction

Struct BetaFunction 

Source
pub struct BetaFunction {
    pub b0: f64,
    pub b1: f64,
    pub order: LoopOrder,
    pub name: String,
}
Expand description

Beta function for a single running coupling constant g.

The beta function β(g) = μ dg/dμ governs how the coupling constant evolves with the RG scale μ. Coefficients b0, b1 follow the convention β(g) = −b0 g² − b1 g³ (perturbative, Euclidean).

Fields§

§b0: f64

One-loop coefficient b₀ (≥ 0 for asymptotic freedom).

§b1: f64

Two-loop coefficient b₁.

§order: LoopOrder

Loop order used for evaluation.

§name: String

Name tag for the theory (e.g. “QCD”, “phi4”).

Implementations§

Source§

impl BetaFunction

Source

pub fn new(b0: f64, b1: f64, order: LoopOrder, name: impl Into<String>) -> Self

Construct a new beta function with given coefficients and loop order.

Source

pub fn evaluate(&self, g: f64) -> f64

Evaluate β(g) at coupling g.

One-loop: β(g) = −b₀ g² Two-loop: β(g) = −b₀ g² − b₁ g³

Source

pub fn derivative(&self, g: f64) -> f64

Derivative dβ/dg at coupling g.

Source

pub fn fixed_point(&self) -> Option<f64>

Find the non-trivial (Wilson-Fisher) fixed point g* where β(g*) = 0, g* ≠ 0.

Returns None if no real fixed point exists in the perturbative regime.

Source

pub fn stability_exponent(&self) -> Option<f64>

Stability exponent ω = dβ/dg|_{g=g*}.

ω > 0: UV fixed point (IR stable); ω < 0: IR fixed point (UV stable).

Source

pub fn run_coupling(&self, g0: f64, t_final: f64, steps: usize) -> f64

Integrate the RG equation dg/dt = β(g) from t=0 to t=t_final using simple Euler integration with steps steps.

Source

pub fn running_coupling_one_loop(&self, g0: f64, t: f64) -> f64

One-loop running coupling: analytic solution g(t) = g₀ / (1 + b₀ g₀ t).

Derived from dg/dt = −b₀ g², which integrates to 1/g(t) = 1/g₀ + b₀ t.

Source

pub fn landau_pole(&self, g0: f64) -> f64

Landau pole scale: t_L where g → ∞ under one-loop running.

Trait Implementations§

Source§

impl Clone for BetaFunction

Source§

fn clone(&self) -> BetaFunction

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BetaFunction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.