AngouriMath

Navigation

← Back to list of members

Cosh​(AngouriMath.​Entity)

 Method (no overloads)

Summary

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

Example

using System;
using static AngouriMath.MathS.Hyperbolic;

Console.WriteLine(Sinh("x"));
Console.WriteLine(Sinh("x").Differentiate("x").Simplify());
Console.WriteLine(Sinh("x").Differentiate("x").Simplify() == Cosh("x"));
Console.WriteLine("--------------------------");
Console.WriteLine(Cosh("x"));
Console.WriteLine(Cosh("x").Differentiate("x").Simplify());
Console.WriteLine(Cosh("x").Differentiate("x").Simplify() == Sinh("x"));

Prints
(e ^ x - e ^ (-x)) / 2
(e ^ x + e ^ (-x)) / 2
True
--------------------------
(e ^ x + e ^ (-x)) / 2
(e ^ x - e ^ (-x)) / 2
True

























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