Beispiel #1
0
        public T Log(BigIntsBase <T> Arg)
        {
            T Result = new T
            {
                Data = Internal_Log(Data, Arg.Data)
            };

            return(Result);
        }
Beispiel #2
0
        public T Mod(BigIntsBase <T> First, params BigIntsBase <T>[] AdditionalArgs)
        {
            T Result = new T
            {
                Data = Internal_Mod(Data, First.Data)
            };

            for (int i = 0; i < AdditionalArgs.Length; i++)
            {
                Result.Data = Internal_Mod(Result.Data, AdditionalArgs[i].Data);
            }

            return(Result);
        }
Beispiel #3
0
        public T Pow(BigIntsBase <T> First, params BigIntsBase <T>[] AdditionalArgs)
        {
            T ResultValue = new T
            {
                Data = Internal_Pow(Data, First.Data)
            };

            for (int i = 0; i < AdditionalArgs.Length; i++)
            {
                ResultValue.Data = Internal_Pow(ResultValue.Data, AdditionalArgs[i].Data);
            }

            return(ResultValue);
        }
Beispiel #4
0
 public bool Equals(BigIntsBase <T> other)
 {
     return(other != null &&
            EqualityComparer <BitArray> .Default.Equals(Data, other.Data));
 }