Esempio n. 1
0
        public void ArcotConstantTest()
        {
            var const1 = new Constant(4);
            var res    = new Arccot(const1);

            Assert.AreEqual(0.24, res.Compute(null), error);
        }
Esempio n. 2
0
        public void ArccotVariableTest()
        {
            var var1 = new Variable("x");
            var res  = new Arccot(var1);

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