protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt32().Value; var v = p2.ToUInt32().Value; var w = UBigInt.Pow(u, v); return(new UBigIntDataItem(w)); }
public void CalculatePie(uint prsn, out UBigInt u, out UBigInt v) { var p = UBigInt.Pow(10, prsn); var q = UBigInt.Pow(10, 10); var y = ((12 * expansion(p, q, 18) + (expansion(p, q, 57) << 3) - 5 * expansion(p, q, 239)) << 2).ToUBigInt() / q; u = y.DivRem(p, out v); }