Skip to main content

DecimalTranscendental

Trait DecimalTranscendental 

Source
pub trait DecimalTranscendental: Sized {
Show 94 methods // Required methods fn ln_strict(self) -> Self; fn ln_strict_with(self, mode: RoundingMode) -> Self; fn ln_approx(self, working_digits: u32) -> Self; fn ln_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn log_strict(self, base: Self) -> Self; fn log_strict_with(self, base: Self, mode: RoundingMode) -> Self; fn log_approx(self, base: Self, working_digits: u32) -> Self; fn log_approx_with( self, base: Self, working_digits: u32, mode: RoundingMode, ) -> Self; fn log2_strict(self) -> Self; fn log2_strict_with(self, mode: RoundingMode) -> Self; fn log2_approx(self, working_digits: u32) -> Self; fn log2_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn log10_strict(self) -> Self; fn log10_strict_with(self, mode: RoundingMode) -> Self; fn log10_approx(self, working_digits: u32) -> Self; fn log10_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn exp_strict(self) -> Self; fn exp_strict_with(self, mode: RoundingMode) -> Self; fn exp_approx(self, working_digits: u32) -> Self; fn exp_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn exp2_strict(self) -> Self; fn exp2_strict_with(self, mode: RoundingMode) -> Self; fn exp2_approx(self, working_digits: u32) -> Self; fn exp2_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn powf_strict(self, exp: Self) -> Self; fn powf_strict_with(self, exp: Self, mode: RoundingMode) -> Self; fn powf_approx(self, exp: Self, working_digits: u32) -> Self; fn powf_approx_with( self, exp: Self, working_digits: u32, mode: RoundingMode, ) -> Self; fn sqrt_strict(self) -> Self; fn sqrt_strict_with(self, mode: RoundingMode) -> Self; fn cbrt_strict(self) -> Self; fn cbrt_strict_with(self, mode: RoundingMode) -> Self; fn hypot_strict(self, other: Self) -> Self; fn hypot_strict_with(self, other: Self, mode: RoundingMode) -> Self; fn sin_strict(self) -> Self; fn sin_strict_with(self, mode: RoundingMode) -> Self; fn sin_approx(self, working_digits: u32) -> Self; fn sin_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn cos_strict(self) -> Self; fn cos_strict_with(self, mode: RoundingMode) -> Self; fn cos_approx(self, working_digits: u32) -> Self; fn cos_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn tan_strict(self) -> Self; fn tan_strict_with(self, mode: RoundingMode) -> Self; fn tan_approx(self, working_digits: u32) -> Self; fn tan_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn atan_strict(self) -> Self; fn atan_strict_with(self, mode: RoundingMode) -> Self; fn atan_approx(self, working_digits: u32) -> Self; fn atan_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn asin_strict(self) -> Self; fn asin_strict_with(self, mode: RoundingMode) -> Self; fn asin_approx(self, working_digits: u32) -> Self; fn asin_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn acos_strict(self) -> Self; fn acos_strict_with(self, mode: RoundingMode) -> Self; fn acos_approx(self, working_digits: u32) -> Self; fn acos_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn atan2_strict(self, other: Self) -> Self; fn atan2_strict_with(self, other: Self, mode: RoundingMode) -> Self; fn atan2_approx(self, other: Self, working_digits: u32) -> Self; fn atan2_approx_with( self, other: Self, working_digits: u32, mode: RoundingMode, ) -> Self; fn sinh_strict(self) -> Self; fn sinh_strict_with(self, mode: RoundingMode) -> Self; fn sinh_approx(self, working_digits: u32) -> Self; fn sinh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn cosh_strict(self) -> Self; fn cosh_strict_with(self, mode: RoundingMode) -> Self; fn cosh_approx(self, working_digits: u32) -> Self; fn cosh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn tanh_strict(self) -> Self; fn tanh_strict_with(self, mode: RoundingMode) -> Self; fn tanh_approx(self, working_digits: u32) -> Self; fn tanh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn asinh_strict(self) -> Self; fn asinh_strict_with(self, mode: RoundingMode) -> Self; fn asinh_approx(self, working_digits: u32) -> Self; fn asinh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn acosh_strict(self) -> Self; fn acosh_strict_with(self, mode: RoundingMode) -> Self; fn acosh_approx(self, working_digits: u32) -> Self; fn acosh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn atanh_strict(self) -> Self; fn atanh_strict_with(self, mode: RoundingMode) -> Self; fn atanh_approx(self, working_digits: u32) -> Self; fn atanh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self; fn to_degrees_strict(self) -> Self; fn to_degrees_strict_with(self, mode: RoundingMode) -> Self; fn to_degrees_approx(self, working_digits: u32) -> Self; fn to_degrees_approx_with( self, working_digits: u32, mode: RoundingMode, ) -> Self; fn to_radians_strict(self) -> Self; fn to_radians_strict_with(self, mode: RoundingMode) -> Self; fn to_radians_approx(self, working_digits: u32) -> Self; fn to_radians_approx_with( self, working_digits: u32, mode: RoundingMode, ) -> Self;
}
Expand description

Width-generic transcendental + root surface shared by every decimal width. See the module-level docs for the four-variant matrix convention and the per-method delegation contract.

Required Methods§

Source

fn ln_strict(self) -> Self

Natural log. See the log/exp implementation module for the algorithm.

Source

fn ln_strict_with(self, mode: RoundingMode) -> Self

Source

fn ln_approx(self, working_digits: u32) -> Self

Source

fn ln_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn log_strict(self, base: Self) -> Self

Log to caller-chosen base.

Source

fn log_strict_with(self, base: Self, mode: RoundingMode) -> Self

Source

fn log_approx(self, base: Self, working_digits: u32) -> Self

Source

fn log_approx_with( self, base: Self, working_digits: u32, mode: RoundingMode, ) -> Self

Source

fn log2_strict(self) -> Self

Log base 2.

Source

fn log2_strict_with(self, mode: RoundingMode) -> Self

Source

fn log2_approx(self, working_digits: u32) -> Self

Source

fn log2_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn log10_strict(self) -> Self

Log base 10.

Source

fn log10_strict_with(self, mode: RoundingMode) -> Self

Source

fn log10_approx(self, working_digits: u32) -> Self

Source

fn log10_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn exp_strict(self) -> Self

Source

fn exp_strict_with(self, mode: RoundingMode) -> Self

Source

fn exp_approx(self, working_digits: u32) -> Self

Source

fn exp_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn exp2_strict(self) -> Self

Source

fn exp2_strict_with(self, mode: RoundingMode) -> Self

Source

fn exp2_approx(self, working_digits: u32) -> Self

Source

fn exp2_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn powf_strict(self, exp: Self) -> Self

Source

fn powf_strict_with(self, exp: Self, mode: RoundingMode) -> Self

Source

fn powf_approx(self, exp: Self, working_digits: u32) -> Self

Source

fn powf_approx_with( self, exp: Self, working_digits: u32, mode: RoundingMode, ) -> Self

Source

fn sqrt_strict(self) -> Self

Source

fn sqrt_strict_with(self, mode: RoundingMode) -> Self

Source

fn cbrt_strict(self) -> Self

Source

fn cbrt_strict_with(self, mode: RoundingMode) -> Self

Source

fn hypot_strict(self, other: Self) -> Self

Source

fn hypot_strict_with(self, other: Self, mode: RoundingMode) -> Self

Source

fn sin_strict(self) -> Self

Source

fn sin_strict_with(self, mode: RoundingMode) -> Self

Source

fn sin_approx(self, working_digits: u32) -> Self

Source

fn sin_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn cos_strict(self) -> Self

Source

fn cos_strict_with(self, mode: RoundingMode) -> Self

Source

fn cos_approx(self, working_digits: u32) -> Self

Source

fn cos_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn tan_strict(self) -> Self

Source

fn tan_strict_with(self, mode: RoundingMode) -> Self

Source

fn tan_approx(self, working_digits: u32) -> Self

Source

fn tan_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn atan_strict(self) -> Self

Source

fn atan_strict_with(self, mode: RoundingMode) -> Self

Source

fn atan_approx(self, working_digits: u32) -> Self

Source

fn atan_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn asin_strict(self) -> Self

Source

fn asin_strict_with(self, mode: RoundingMode) -> Self

Source

fn asin_approx(self, working_digits: u32) -> Self

Source

fn asin_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn acos_strict(self) -> Self

Source

fn acos_strict_with(self, mode: RoundingMode) -> Self

Source

fn acos_approx(self, working_digits: u32) -> Self

Source

fn acos_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn atan2_strict(self, other: Self) -> Self

atan2(self, other) — matches the f64 convention where self is y and other is x.

Source

fn atan2_strict_with(self, other: Self, mode: RoundingMode) -> Self

Source

fn atan2_approx(self, other: Self, working_digits: u32) -> Self

Source

fn atan2_approx_with( self, other: Self, working_digits: u32, mode: RoundingMode, ) -> Self

Source

fn sinh_strict(self) -> Self

Source

fn sinh_strict_with(self, mode: RoundingMode) -> Self

Source

fn sinh_approx(self, working_digits: u32) -> Self

Source

fn sinh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn cosh_strict(self) -> Self

Source

fn cosh_strict_with(self, mode: RoundingMode) -> Self

Source

fn cosh_approx(self, working_digits: u32) -> Self

Source

fn cosh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn tanh_strict(self) -> Self

Source

fn tanh_strict_with(self, mode: RoundingMode) -> Self

Source

fn tanh_approx(self, working_digits: u32) -> Self

Source

fn tanh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn asinh_strict(self) -> Self

Source

fn asinh_strict_with(self, mode: RoundingMode) -> Self

Source

fn asinh_approx(self, working_digits: u32) -> Self

Source

fn asinh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn acosh_strict(self) -> Self

Source

fn acosh_strict_with(self, mode: RoundingMode) -> Self

Source

fn acosh_approx(self, working_digits: u32) -> Self

Source

fn acosh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn atanh_strict(self) -> Self

Source

fn atanh_strict_with(self, mode: RoundingMode) -> Self

Source

fn atanh_approx(self, working_digits: u32) -> Self

Source

fn atanh_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn to_degrees_strict(self) -> Self

Source

fn to_degrees_strict_with(self, mode: RoundingMode) -> Self

Source

fn to_degrees_approx(self, working_digits: u32) -> Self

Source

fn to_degrees_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

Source

fn to_radians_strict(self) -> Self

Source

fn to_radians_strict_with(self, mode: RoundingMode) -> Self

Source

fn to_radians_approx(self, working_digits: u32) -> Self

Source

fn to_radians_approx_with(self, working_digits: u32, mode: RoundingMode) -> Self

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.

Implementors§

Source§

impl<const SCALE: u32> DecimalTranscendental for D18<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D38<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D57<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D76<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D115<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D153<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D230<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D307<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D462<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D616<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D924<SCALE>

Source§

impl<const SCALE: u32> DecimalTranscendental for D1232<SCALE>