Exemple #1
0
        public void Power_NegativeExponentInput_ZeroOutput()
        {
            var result = _math.TryPower(-1, -2);

            Assert.AreEqual(0, result);
        }
Exemple #2
0
 private double SamePart(double interest, int years)
 {
     return(_math.TryPower(1 + interest, NumberOfPayments(years)));
 }