mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-21 16:14:21 +00:00
0ce8509a8c
* 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.
24 lines
613 B
PHP
24 lines
613 B
PHP
<?php
|
|
|
|
return [
|
|
['#VALUE!', '"ABC"'],
|
|
[3.04192400109863, -10],
|
|
[2.98376146330163, '-PI() * 2'],
|
|
[2.94419709373991, '"-5"'],
|
|
[2.83342358247381, '-PI()'],
|
|
[2.57468114864878, '-PI() / 2'],
|
|
[1.67046497928606, -0.1],
|
|
[1.57079632679490, 0.0],
|
|
[1.47112767430373, 0.1],
|
|
[0.56691150494101, 'PI() / 2'],
|
|
[0.30816907111599, 'PI()'],
|
|
[0.19739555984988, 5],
|
|
[0.15783119028816, 'PI() * 2'],
|
|
[0.09966865249116, 10],
|
|
[1.57079632679490, 'Q15'],
|
|
[1.57079632679490, 'null'],
|
|
[1.57079632679490, 'false'],
|
|
[0.785398163, 'true'],
|
|
[2.94419709373991, 'A5'],
|
|
];
|