Beispiel #1
0
        public static Symbol operator %(Symbol lhs, float scalar)
        {
            if (lhs == null)
            {
                throw new ArgumentNullException(nameof(lhs));
            }

            lhs.ThrowIfDisposed();

            return(OperatorSupply.ModScalar(lhs, scalar));
        }
Beispiel #2
0
        public static Symbol operator %(float lhs, Symbol rhs)
        {
            if (rhs == null)
            {
                throw new ArgumentNullException(nameof(rhs));
            }

            rhs.ThrowIfDisposed();

            return(OperatorSupply.RModScalar(lhs, rhs));
        }
Beispiel #3
0
        public static Symbol operator %(Symbol lhs, Symbol rhs)
        {
            if (lhs == null)
            {
                throw new ArgumentNullException(nameof(lhs));
            }
            if (rhs == null)
            {
                throw new ArgumentNullException(nameof(rhs));
            }

            lhs.ThrowIfDisposed();
            rhs.ThrowIfDisposed();

            return(OperatorSupply.Mod(lhs, rhs));
        }