Esempio n. 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));
        }
Esempio n. 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));
        }
Esempio n. 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));
        }