PhpSpreadsheet/tests/PhpSpreadsheetTests/Calculation/Functions
oleibman 0ce8509a8c
Continue MathTrig Breakup - Trig Functions (#1905)
* Continue MathTrig Breakup - Trig Functions

Continuing the process of breaking MathTrip.php up into smaller classes.
This round takes care of the trig and hyperbolic functions, plus a few others.
- COS, COSH, ACOS, ACOSH
- COT, COTH, ACOT, ACOTH
- CSC, CSCH
- SEC, SECH
- SIN, SINH, ASIN, ASINH
- TAN, TANH, ATAN, ATANH, ATAN2
- EVEN
- ODD
- SIGN

There are no bug fixes in this PR, except that boolean arguments are now
accepted for all these functions, as they are for Excel.
Taking a cue from what has been done in Engineering, the parameter validation
now happens in a routine which issues Exceptions for invalid values;
this simplifies the code in the functions themselves.

Consistent with earlier changes of this nature, the versions in the
MathTrig class remain, with a doc block indicating deprecation,
and a stub call to the new routines.

I think several more iterations will be needed to break up MathTrig completely.
2021-03-13 12:06:30 +01:00
..
Database Initial experiments using the new Database query logic with Conditional Statistical Functions (#1880) 2021-02-27 18:26:12 +01:00
DateTime 100% Coverage for Calculation/DateTime (#1870) 2021-02-27 20:43:22 +01:00
Engineering Additional Unit Test Cases for Convert UoM (#1864) 2021-02-19 08:41:26 +01:00
Financial Extract remaining Excel function unit tests into separate test classes for each function (#1817) 2021-01-31 15:09:56 +01:00
Logical Add support for IFS() logical function (#1442) 2020-06-20 18:21:19 +02:00
LookupRef Lookup ref further tests and examples (#1918) 2021-03-11 22:34:47 +01:00
MathTrig Continue MathTrig Breakup - Trig Functions (#1905) 2021-03-13 12:06:30 +01:00
Statistical Trend unit tests (#1899) 2021-03-06 22:50:19 +01:00
TextData Problems Using Builtin PHP Functions Directly As Excel Functions (#1799) 2021-01-26 22:55:06 +01:00
Web WEBSERVICE is HTTP client agnostic 2020-07-19 11:33:01 +09:00