Skip to content

Commit

Permalink
Merge pull request #11 from JordanRL/dev
Browse files Browse the repository at this point in the history
Fixed DecimalInterface to correctly reflect trig functions
  • Loading branch information
JordanRL committed Jan 16, 2017
2 parents a6a1ff1 + 875cd3d commit 9057b42
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 1 deletion.
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ This project adheres to [Semantic Versioning](http://semver.org/). At least so m

*Nothing*

## [1.0.2] - 2017-01-16
### Fixed
- DecimalInterface
- Added the following to correctly reflect usage:
- tan()
- cot()
- sec()
- csc()
- arcsin()
- arccos()
- arctan()
- arccot()
- arcsec()
- arccsc()

## [1.0.1] - 2017-01-16
### Changed
- Composer
Expand Down Expand Up @@ -67,5 +82,6 @@ This project adheres to [Semantic Versioning](http://semver.org/). At least so m
- StatsProvider
- TrigonometryProvider

[unreleased]: https://github.com/JordanRL/Fermat/compare/v1.0.1...HEAD
[unreleased]: https://github.com/JordanRL/Fermat/compare/v1.0.2...HEAD
[1.0.2]: https://github.com/JordanRL/Fermat/compare/v1.0.1...v1.0.2
[1.0.1]: https://github.com/JordanRL/Fermat/compare/v1.0.0...v1.0.1
80 changes: 80 additions & 0 deletions src/Samsara/Fermat/Types/Base/DecimalInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,86 @@ public function sin($precision = null, $round = true);
*/
public function cos($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function tan($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function cot($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function sec($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function csc($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function arcsin($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function arccos($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function arctan($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function arccot($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function arcsec($precision = null, $round = true);

/**
* @param null $precision
* @param bool $round
*
* @return NumberInterface|DecimalInterface
*/
public function arccsc($precision = null, $round = true);

public function ln($precision = 10);

public function log10($precision = 10);
Expand Down

0 comments on commit 9057b42

Please sign in to comment.