Пример #1
0
        public void ArcsinConstantTest()
        {
            var const1 = new Constant(0.7);
            var res    = new Arcsin(const1);

            Assert.AreEqual(0.77, res.Compute(null), error);
        }
Пример #2
0
        public void IsPolynomArcsinX()
        {
            var var1 = new Variable("x");
            var res  = new Arcsin(var1);

            Assert.AreEqual(false, res.IsPolynom);
        }
Пример #3
0
        public void IsPolynom1AddX()
        {
            var var1   = new Variable("x");
            var const1 = new Arcsin("е");
            var res    = var1 + const1;

            Assert.AreEqual(false, res.IsPolynom);
        }
Пример #4
0
        public void DivIsPolynomFuncAndVar()
        {
            var var1 = new Arcsin("x");
            var var2 = new Variable("x");
            var res  = (var1 / var2).IsPolynom;

            Assert.AreEqual(false, res);
        }
Пример #5
0
        public void DivIsConstantVarAndFunction()
        {
            var var1 = new Variable("x");
            var var2 = new Arcsin("y");
            var res  = (var1 / var2).IsConstant;

            Assert.AreEqual(false, res);
        }
Пример #6
0
        public void PowIsPolynom2nonPol()
        {
            var const1 = new Arcsin("x");
            var const2 = 2.0;
            var res    = new Pow(const1, const2).IsPolynom;

            Assert.AreEqual(false, res);
        }
Пример #7
0
        public void MulIsPolynomPolAndNonpol()
        {
            var var1 = new Arcsin("x");
            var var2 = new Variable("y");
            var res  = (var1 * var2).IsPolynom;

            Assert.AreEqual(false, res);
        }
Пример #8
0
        public void AddIsPolynomPolAndNonPol()
        {
            var      var1 = new Arcsin("x");
            Variable e    = new Variable("t");
            var      res  = ((Sum)(var1 + e)).IsPolynom;

            Assert.AreEqual(false, res);
        }
Пример #9
0
        public void AddIsPolynomVarAndNonpolynom()
        {
            Variable var1 = new Variable("x");
            var      e    = new Arcsin("t");
            var      res  = ((Sum)(var1 + e)).IsPolynom;

            Assert.AreEqual(false, res);
        }
Пример #10
0
        public void SubIsPolynom2Nonpol()
        {
            var var1 = new Arcsin("x");
            var var2 = new Arcsin("y");
            var res  = var1 - var2;

            Assert.AreEqual(false, res.IsPolynom);
        }
Пример #11
0
        public void ArcsinVariableTest()
        {
            var var1 = new Variable("x");
            var res  = new Arcsin(var1);

            Assert.AreEqual(0.77, res.Compute(new Dictionary <string, double>()
            {
                ["x"] = 0.7
            }), error);
        }