From c6a9ae9e6ffe7a8aaeeb7f7710df748fa80ebd59 Mon Sep 17 00:00:00 2001 From: Frederique Mittelstaedt Date: Tue, 12 Mar 2019 12:18:24 +0000 Subject: [PATCH] feat(calculator.ts): add cosh method --- src/Calculator.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Calculator.ts b/src/Calculator.ts index f395459..8795d57 100644 --- a/src/Calculator.ts +++ b/src/Calculator.ts @@ -81,4 +81,9 @@ export default class Calculator { this.current = Math.sinh(this.current); return this; } + + public cosh() { + this.current = Math.cosh(this.current); + return this; + } }