Skip to content

Commit c6a9ae9

Browse files
committed
feat(calculator.ts): add cosh method
1 parent 597cd08 commit c6a9ae9

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
@@ -81,4 +81,9 @@ export default class Calculator {
8181
this.current = Math.sinh(this.current);
8282
return this;
8383
}
84+
85+
public cosh() {
86+
this.current = Math.cosh(this.current);
87+
return this;
88+
}
8489
}

0 commit comments

Comments
 (0)