pub trait FloatMath: SealedMath + Sized {
Show 54 methods
// Required methods
fn abs(x: Self) -> Self;
fn copysign(x: Self, y: Self) -> Self;
fn round(x: Self) -> Self;
fn trunc(x: Self) -> Self;
fn ceil(x: Self) -> Self;
fn floor(x: Self) -> Self;
fn scalbn(x: Self, y: i32) -> Self;
fn frexp(x: Self) -> (Self, i32);
fn hypot(x: Self, y: Self) -> Self;
fn sqrt(x: Self) -> Self;
fn cbrt(x: Self) -> Self;
fn exp(x: Self) -> Self;
fn exp_m1(x: Self) -> Self;
fn exp2(x: Self) -> Self;
fn exp10(x: Self) -> Self;
fn log(x: Self) -> Self;
fn log_1p(x: Self) -> Self;
fn log2(x: Self) -> Self;
fn log10(x: Self) -> Self;
fn pow(x: Self, y: Self) -> Self;
fn powi(x: Self, y: i32) -> Self;
fn sin(x: Self) -> Self;
fn cos(x: Self) -> Self;
fn sin_cos(x: Self) -> (Self, Self);
fn tan(x: Self) -> Self;
fn sind(x: Self) -> Self;
fn cosd(x: Self) -> Self;
fn sind_cosd(x: Self) -> (Self, Self);
fn tand(x: Self) -> Self;
fn sinpi(x: Self) -> Self;
fn cospi(x: Self) -> Self;
fn sinpi_cospi(x: Self) -> (Self, Self);
fn tanpi(x: Self) -> Self;
fn asin(x: Self) -> Self;
fn acos(x: Self) -> Self;
fn atan(x: Self) -> Self;
fn atan2(y: Self, x: Self) -> Self;
fn asind(x: Self) -> Self;
fn acosd(x: Self) -> Self;
fn atand(x: Self) -> Self;
fn atan2d(y: Self, x: Self) -> Self;
fn asinpi(x: Self) -> Self;
fn acospi(x: Self) -> Self;
fn atanpi(x: Self) -> Self;
fn atan2pi(y: Self, x: Self) -> Self;
fn sinh(x: Self) -> Self;
fn cosh(x: Self) -> Self;
fn sinh_cosh(x: Self) -> (Self, Self);
fn tanh(x: Self) -> Self;
fn asinh(x: Self) -> Self;
fn acosh(x: Self) -> Self;
fn atanh(x: Self) -> Self;
fn tgamma(x: Self) -> Self;
fn lgamma(x: Self) -> (Self, i8);
}
Expand description
Floating point types with math functions.
Required Methods§
Sourcefn sinpi_cospi(x: Self) -> (Self, Self)
fn sinpi_cospi(x: Self) -> (Self, Self)
See the sinpi_cospi
function.
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.