public void TestAsinh() { double d = 0; d = MathX.Asinh(0); AssertEquals("asinh 0", d, 0); d = MathX.Asinh(1); AssertEquals("asinh 1 ", 0.881373587, d); d = MathX.Asinh(-1); AssertEquals("asinh -1 ", -0.881373587, d); d = MathX.Asinh(-100); AssertEquals("asinh -100 ", -5.298342366, d); d = MathX.Asinh(100); AssertEquals("asinh 100 ", 5.298342366, d); d = MathX.Asinh(200000); AssertEquals("asinh 200000", 12.899219826096400, d); d = MathX.Asinh(-200000); AssertEquals("asinh -200000 ", -12.899223853137, d); }
public override double Evaluate(double d) { return(MathX.Asinh(d)); }