Skip to content

Commit a07e54a

Browse files
committed
feat(calculator): add sin method
1 parent dc1c756 commit a07e54a

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
@@ -56,4 +56,9 @@ export default class Calculator {
5656
this.current = ln(this.current);
5757
return this;
5858
}
59+
60+
public sin() {
61+
this.current = Math.sin(this.current);
62+
return this;
63+
}
5964
}

0 commit comments

Comments
 (0)