public void Ln_TestInvalidArg() { Assert.Throws <ArgumentException>(() => CordicMath.Ln(0.0)); }
public void Ln_Test(double x) { Assert.That(CordicMath.Ln(x, _steps) / Math.Log(x), Is.EqualTo(1.0).Within(_tolerance)); }