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
impl SumArctan
impl SumArctan
Sourcepub fn sum_arctan_gregory(&self, m: ui_t) -> mpf_s
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§
Auto Trait Implementations§
impl Freeze for SumArctan
impl RefUnwindSafe for SumArctan
impl Send for SumArctan
impl Sync for SumArctan
impl Unpin for SumArctan
impl UnwindSafe for SumArctan
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