Struct SumArctan

Source
pub struct SumArctan {
    pub ax: Vec<(ui_t, ui_t, ui_t)>,
}
Expand description

SumArctan

Fields§

§ax: Vec<(ui_t, ui_t, ui_t)>

ax: Vec<(sgn: ui_t, a: ui_t, x: ui_t)>

Implementations§

Source§

impl SumArctan

impl SumArctan

Source

pub fn sum_arctan_gregory(&self, m: ui_t) -> mpf_s

calc pi/4 sum arctan Gregory

  • arctan x = sigma[n=0->inf]{(-1 ** n) * x**(2n+1) / (2n+1)}
  • sum_n = sigma[k=0->ax.len](a_k * arctan_n x_k)
  • result = sigma[n=0->m]sum_n
  • inner loop may be slow (should be outer mul a_k) to check stop iterator

Trait Implementations§

Source§

impl From<Vec<(i64, u64)>> for SumArctan

impl From<Vec<(si_t, ui_t)>> for SumArctan

  • from Vec<(a: si_t, x: ui_t)>
  • to Vec<(sgn: ui_t, a: ui_t, x: ui_t)>
Source§

fn from(ax: Vec<(si_t, ui_t)>) -> Self

SumArctan from Vec<(si_t, ui_t)>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.