Ejemplo n.º 1
0
 public void CanComputeExponential([Values(0.0, 0.0, -1.0, -111.1)] double real, [Values(0.0, 1.0, 1.0, 111.1)] double imag, [Values(1.0, 0.54030230586813977, 0.19876611034641295, -2.3259065941590448e-49)] double expectedReal, [Values(0.0, 0.8414709848078965, 0.30955987565311222, -5.1181940185795617e-49)] double expectedImag)
 {
     var value = new Complex(real, imag);
     var expected = new Complex(expectedReal, expectedImag);
     AssertHelpers.AlmostEqual(expected, value.Exponential(), 15);
 }
 public void CanComputeExponential(double real, double imag, double expectedReal, double expectedImag)
 {
     var value = new Complex(real, imag);
     var expected = new Complex(expectedReal, expectedImag);
     AssertHelpers.AlmostEqual(expected, value.Exponential(), 15);
 }