protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUBigInt().Value; var v = p2.ToUInt64().Value; var w = u.Multiply(v); return(new UBigIntDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToBigInt().Value; var v = p2.ToUInt64().Value; var w = u >= v; return(new UInt32DataItem(w ? 1U : 0U)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt64().Value; var v = p2.ToBigInt().Value; var w = u | v; return(new BigIntDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToRational().Value; var v = p2.ToUInt64().Value; var w = u * v; return(new RationalDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt64().Value; var v = p2.ToInt32().Value; var w = Rational.Pow(u, v); return(new RationalDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUBigInt().Value; var v = p2.ToUInt64().Value; var w = u.CompareTo(v); return(new Int32DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToBigInt().Value; var v = p2.ToUInt64().Value; var w = u.BitwiseAnd(v); return(new UInt64DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUBigInt().Value; var v = p2.ToUInt64().Value; var w = u.GreatestCommonDivisor(v); return(new UBigIntDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt64().Value; var v = p2.ToUBigInt().Value; var w = u.USubtruct(v); return(new UInt64DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt64().Value; var v = p2.ToRational().Value; var w = Rational.Compare(u, v); return(new Int32DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt64().Value; var v = p2.ToRational().Value; var w = Rational.Equals(u, v) ? 1U : 0U; return(new UInt32DataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt64().Value; var v = p2.ToUInt32().Value; var w = UBigInt.Pow(u, v); return(new UBigIntDataItem(w)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2, out IDataItem r2) { var u = p1.ToUBigInt().Value; var v = p2.ToUInt64().Value; UInt64 r; var q = UBigInt.DivRem(u, v, out r); r2 = new UInt64DataItem(r); return(new UBigIntDataItem(q)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2, out IDataItem r2) { var u = p1.ToBigInt().Value; var v = p2.ToUInt64().Value; BigInt r; var q = u.DivRem(v, out r); r2 = new BigIntDataItem(r); return(new BigIntDataItem(q)); }
protected override IDataItem TestFunc(IDataItem p1, IDataItem p2) { var u = p1.ToUInt64().Value; var v = p2.ToUBigInt().Value; try { var w = u.Equals(v); return(new UInt32DataItem(w ? 1U : 0U)); } catchx(Exception ex) { return(new ExceptionDataItem(ex.GetType())); } }