Skip to content

Commit af4f3d6

Browse files
committed
feat(calculator.ts): add tanh method
1 parent c6a9ae9 commit af4f3d6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Calculator.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,9 @@ export default class Calculator {
8686
this.current = Math.cosh(this.current);
8787
return this;
8888
}
89+
90+
public tanh() {
91+
this.current = Math.tanh(this.current);
92+
return this;
93+
}
8994
}

0 commit comments

Comments
 (0)