public void Mathline_Reckoning_Formula_Test()
        {
            rck = new Reckoning(spcMtic);

            Mathline ml = rck.GetMathline("SellNetPrice");

            ml.Formula = (ml["NetPrice"] * (ml["SellFeeRate"] / 100)) + ml["NetPrice"];

            Mathline ml2 = rck.GetMathline("SellGrossPrice");

            ml2.Formula = ml * ml2["TaxRate"];

            rck.Reckon(); // first with formula compilation

            rck.Reckon(); // second when formula compiled
        }
        public void Mathline_Reckoning_LogicOnStack_Formula_Test()
        {
            rck = new Reckoning(spcMtic);

            Mathline ml = rck.GetMathline("SellNetPrice");

            ml.Formula = (((ml["NetCost"] < 10) | (ml["NetCost"] > 50)) * (ml["NetPrice"] * (ml["SellFeeRate"] / 100)) + ml["NetPrice"]) +
                         ((ml["NetCost"] > 10) & (ml["NetCost"] < 50)) * ml["NetPrice"];

            Mathline ml2 = rck.GetMathline("SellGrossPrice");

            ml2.Formula = ml * ml2["TaxRate"];

            rck.Reckon(); // first with formula compilation

            rck.Reckon(); // second when formula compiled
        }