Пример #1
0
        public static ValueTerm Scaling(ValueTerm factor, ValueTerm value)
        {
            if (factor.Dimension != 1)
            {
                throw new ArgumentException("Dimension of 'factor' is not 1.");
            }

            return(TermsWrapped.Product(factor, value));
        }
Пример #2
0
        public static ValueTerm Product(ValueTerm value1, ValueTerm value2)
        {
            if (value1.Dimension != 1)
            {
                throw new ArgumentException("Dimension of 'value1' is not 1.");
            }
            if (value2.Dimension != 1)
            {
                throw new ArgumentException("Dimension of 'value2' is not 1.");
            }

            return(TermsWrapped.Product(value1, value2));
        }