AngouriMath

Navigation

← Back to list of members

Sech​(AngouriMath.​Entity)

 Method (no overloads)

Summary

Hyperbolic secant:
1 / cosh x
Wikipedia

Example

Console.WriteLine(Sech("x"));
Console.WriteLine(Sech("x").Substitute("x", 1.5).Evaled);
Console.WriteLine(Sech("x").Substitute("x", 0.01).Evaled);
Console.WriteLine("-----------------------------");
Console.WriteLine(Cosech("x"));
Console.WriteLine(Cosech("x").Substitute("x", 1.5).Evaled);
Console.WriteLine(Cosech("x").Substitute("x", 0.01).Evaled);

Prints
1 / ((e ^ x + e ^ (-x)) / 2)
0.42509
0.99995
-----------------------------
1 / ((e ^ x - e ^ (-x)) / 2)
0.46964
99.9983

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online