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