Skip to main content

GaussConstant

Trait GaussConstant 

Source
pub trait GaussConstant {
    const GAUSS_CONSTANT: Self;
}
Expand description

Provides Gauss’s constant, $G=1/\mathrm{AGM}(1,\sqrt{2})$.

Having three consecutive esses in an identifier is awkward, so let’s pretend that we sometimes use AP Style and write “Gauss’ constant”.

Required Associated Constants§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl GaussConstant for f32

$G=1/\mathrm{AGM}(1,\sqrt{2})$.

Source§

const GAUSS_CONSTANT: f32 = 0.83462685

Source§

impl GaussConstant for f64

$G=1/\mathrm{AGM}(1,\sqrt{2})$.

Source§

const GAUSS_CONSTANT: f64 = 0.8346268416740732

Implementors§