Skip to content

Commit

Permalink
feat(calculator): add sin method
Browse files Browse the repository at this point in the history
  • Loading branch information
gfmio committed Mar 7, 2019
1 parent dc1c756 commit a07e54a
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 @@ -56,4 +56,9 @@ export default class Calculator {
this.current = ln(this.current);
return this;
}

public sin() {
this.current = Math.sin(this.current);
return this;
}
}

0 comments on commit a07e54a

Please sign in to comment.