PhpSpreadsheet/tests/data/Calculation/Engineering/IMSUB.php
Mark Baker 1b96c95a44
Add new Complex Number Functions introduced in MS Excel 2013 (#601)
* - Refactored Complex Engineering Functions to use external complex number library
- Added calculation engine support for the new complex number functions that were added in MS Excel 2013
    - IMCOSH()  Returns the hyperbolic cosine of a complex number
    - IMCOT()   Returns the cotangent of a complex number
    - IMCSC()   Returns the cosecant of a complex number
    - IMCSCH()  Returns the hyperbolic cosecant of a complex number
    - IMSEC()   Returns the secant of a complex number
    - IMSECH()  Returns the hyperbolic secant of a complex number
    - IMSINH()  Returns the hyperbolic sine of a complex number
    - IMTAN()   Returns the tangent of a complex number
* Simplified the parseComplex() method in the PhpOffice\PhpSpreadsheet\Calculation\Engineering class, using Complex\Complex; and docblock flagged as deprecated
2018-07-25 14:38:44 +01:00

41 lines
645 B
PHP

<?php
return [
[
'#NUM!',
'12.34+5.67j',
'123.45+67.89i',
],
[
'111.11+62.22j',
'123.45+67.89j',
'12.34+5.67j',
],
[
'-111.11-62.22j',
'12.34+5.67j',
'123.45+67.89j',
],
[
'-111.11-62.22i',
'12.34+5.67i',
'123.45+67.89i',
'123.45+67.89i',
],
[
'-135.79+62.22i',
'-12.34-5.67i',
'123.45-67.89i',
],
[
'135.79+62.22i',
'12.34-5.67i',
'-123.45-67.89i',
],
[
'111.11+62.22i',
'-12.34-5.67i',
'-123.45-67.89i',
],
];