Exemplo n.º 1
0
        public void TestLong()
        {
            // Caching with multiple values
            var expr = (MathS.Sqr(x) + MathS.Sqr(x)) / MathS.Sqr(x)
                       + MathS.Sqrt(x) + MathS.Cbrt(x) * MathS.Cbrt(x) + MathS.Sqrt(x);
            var func = expr.Compile(x);

            Assert.Equal(34, func.Call(64));
        }