AngouriMath

Navigation

← Back to list of members

Cotanh​(AngouriMath.​Entity)

 Method (no overloads)

Summary

Hyperbolic cotangent:
(e ^ (2x) + 1) / (e ^ (2x) - 1)
Wikipedia

Example

using System;
using static AngouriMath.MathS.Hyperbolic;

Console.WriteLine(Tanh("x"));
Console.WriteLine(Tanh("x").Substitute("x", 1.5).Evaled);
Console.WriteLine(Tanh("x").Substitute("x", 0.01).Evaled);
Console.WriteLine("-----------------------------");
Console.WriteLine(Cotanh("x"));
Console.WriteLine(Cotanh("x").Substitute("x", 1.5).Evaled);
Console.WriteLine(Cotanh("x").Substitute("x", 0.01).Evaled);

Prints
(e ^ (2 * x) - 1) / (e ^ (2 * x) + 1)
0.905148253644
0.009999666679
-----------------------------
(e ^ (2 * x) + 1) / (e ^ (2 * x) - 1)
1.104791392982
100.0033333111

























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