pub struct PAdicExp {
pub p: u64,
pub convergence_radius: f64,
}Expand description
The p-adic exponential function exp_p(x) = Σ x^n / n!.
Fields§
§p: u64The prime p.
convergence_radius: f64Radius of convergence (= p^{-1/(p-1)} for p odd, = 2^{-2} for p=2).
Implementations§
Source§impl PAdicExp
impl PAdicExp
Sourcepub fn converges_at(&self, x: &PAdicNumber) -> bool
pub fn converges_at(&self, x: &PAdicNumber) -> bool
True if the series exp_p(x) converges at x, i.e. |x|_p < convergence_radius.
Sourcepub fn evaluate_series(&self, x: f64, terms: u32) -> f64
pub fn evaluate_series(&self, x: f64, terms: u32) -> f64
Numerically evaluate the partial sum Σ_{n=0}^{terms-1} x^n / n! over ℝ.
Auto Trait Implementations§
impl Freeze for PAdicExp
impl RefUnwindSafe for PAdicExp
impl Send for PAdicExp
impl Sync for PAdicExp
impl Unpin for PAdicExp
impl UnsafeUnpin for PAdicExp
impl UnwindSafe for PAdicExp
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