Skip to content

Commit

Permalink
feat(calculator.ts): add tanh method
Browse files Browse the repository at this point in the history
  • Loading branch information
gfmio committed Mar 12, 2019
1 parent c6a9ae9 commit af4f3d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit af4f3d6

Please sign in to comment.