PhpSpreadsheet/tests/data/Calculation/Engineering/IMSEC.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

113 lines
2.0 KiB
PHP

<?php
return [
[
'0.00671973874162309199-0.00154764157870523791j',
'12.34+5.67j',
],
[
'-0.153210472299609239-0.0566222314884645297i',
'3.5+2.5i',
],
[
'-0.639945455994778845-0.182565069612144926i',
'3.5+i',
],
[
'-1.06785504719181066',
'3.5',
],
[
'-0.639945455994778845+0.182565069612144926i',
'3.5-i',
],
[
'-0.153210472299609239+0.0566222314884645297i',
'3.5-2.5i',
],
[
'0.0897986028721219428+0.137981006709970822i',
'1+2.5i',
],
[
'0.498337030555186785+0.591083841721045048i',
'1+i',
],
[
'1.85081571768092562',
'1',
],
[
'0.498337030555186785-0.591083841721045048i',
'1-i',
],
[
'0.0897986028721219428-0.137981006709970822i',
'1-2.5i',
],
[
'0.163071231929977826',
'2.5i',
],
[
'0.648054273663885400',
'i',
],
[
'1.0',
'0',
],
[
'0.648054273663885400',
'-i',
],
[
'0.163071231929977826',
'-2.5i',
],
[
'0.0897986028721219428-0.137981006709970822i',
'-1+2.5i',
],
[
'0.498337030555186785-0.591083841721045048i',
'-1+i',
],
[
'1.85081571768092562',
'-1',
],
[
'0.498337030555186785+0.591083841721045048i',
'-1-i',
],
[
'0.0897986028721219428+0.137981006709970822i',
'-1-2.5i',
],
[
'-0.153210472299609239+0.0566222314884645297i',
'-3.5+2.5i',
],
[
'-0.639945455994778845+0.182565069612144926i',
'-3.5+i',
],
[
'-1.06785504719181066',
'-3.5',
],
[
'-0.639945455994778845-0.182565069612144926i',
'-3.5-i',
],
[
'-0.153210472299609239-0.0566222314884645297i',
'-3.5-2.5i',
],
[
'-1.01010866590799375',
'3',
],
];