diff --git a/content/pytorch/concepts/tensors/terms/cosh/cosh.md b/content/pytorch/concepts/tensors/terms/cosh/cosh.md new file mode 100644 index 00000000000..8f895097f96 --- /dev/null +++ b/content/pytorch/concepts/tensors/terms/cosh/cosh.md @@ -0,0 +1,19 @@ +# .cosh() + +## Introduction +The `.cosh()` function in PyTorch computes the **hyperbolic cosine** of each element in the input tensor. The hyperbolic cosine, denoted as `cosh(x)`, is a mathematical function that is useful in various fields, including geometry, physics, and machine learning. + +The hyperbolic cosine is defined as: +\[ +\cosh(x) = \frac{e^x + e^{-x}}{2} +\] + +In PyTorch, the `.cosh()` function allows you to apply this operation **element-wise** to all elements of a tensor, which is particularly useful for tensor computations in scientific and engineering applications. + +--- + +## Syntax +```python +torch.cosh(input, *, out=None) -> Tensor + +