pub struct PoissonBracket {
pub f: String,
pub g: String,
pub result: String,
}Expand description
The Poisson bracket {f, g} = Σᵢ (∂f/∂qᵢ ∂g/∂pᵢ − ∂f/∂pᵢ ∂g/∂qᵢ).
Fields§
§f: StringName of the first function f
g: StringName of the second function g
result: StringSymbolic result of the bracket
Implementations§
Source§impl PoissonBracket
impl PoissonBracket
Sourcepub fn satisfies_jacobi_identity(&self) -> bool
pub fn satisfies_jacobi_identity(&self) -> bool
The Jacobi identity: {{f,g},h} + {{g,h},f} + {{h,f},g} = 0.
Sourcepub fn is_derivation(&self) -> bool
pub fn is_derivation(&self) -> bool
The Leibniz rule: {f, gh} = {f,g}h + g{f,h} (bracket is a derivation).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoissonBracket
impl RefUnwindSafe for PoissonBracket
impl Send for PoissonBracket
impl Sync for PoissonBracket
impl Unpin for PoissonBracket
impl UnsafeUnpin for PoissonBracket
impl UnwindSafe for PoissonBracket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more