1b96c95a44
* - 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
113 lines
2.0 KiB
PHP
113 lines
2.0 KiB
PHP
<?php
|
|
|
|
return [
|
|
[
|
|
'7.15308425036177674E-6+5.03341614116724074E-6j',
|
|
'12.34+5.67j',
|
|
],
|
|
[
|
|
'-0.0484039219824442559-0.0360929239424409676i',
|
|
'3.5+2.5i',
|
|
],
|
|
[
|
|
'0.0326859677559519711-0.0508126238588615047i',
|
|
'3.5+i',
|
|
],
|
|
[
|
|
'0.0603397441201676464',
|
|
'3.5',
|
|
],
|
|
[
|
|
'0.0326859677559519711+0.0508126238588615047i',
|
|
'3.5-i',
|
|
],
|
|
[
|
|
'-0.0484039219824442559+0.0360929239424409676i',
|
|
'3.5-2.5i',
|
|
],
|
|
[
|
|
'-0.611108564155231518-0.347676660710495997i',
|
|
'1+2.5i',
|
|
],
|
|
[
|
|
'0.498337030555186785-0.591083841721045048i',
|
|
'1+i',
|
|
],
|
|
[
|
|
'0.648054273663885400',
|
|
'1',
|
|
],
|
|
[
|
|
'0.498337030555186785+0.591083841721045048i',
|
|
'1-i',
|
|
],
|
|
[
|
|
'-0.611108564155231518+0.347676660710495997i',
|
|
'1-2.5i',
|
|
],
|
|
[
|
|
'-1.24821565146881783',
|
|
'2.5i',
|
|
],
|
|
[
|
|
'1.85081571768092562',
|
|
'i',
|
|
],
|
|
[
|
|
'1.0',
|
|
'0',
|
|
],
|
|
[
|
|
'1.85081571768092562',
|
|
'-i',
|
|
],
|
|
[
|
|
'-1.24821565146881783',
|
|
'-2.5i',
|
|
],
|
|
[
|
|
'-0.611108564155231518+0.347676660710495997i',
|
|
'-1+2.5i',
|
|
],
|
|
[
|
|
'0.498337030555186785+0.591083841721045048i',
|
|
'-1+i',
|
|
],
|
|
[
|
|
'0.648054273663885400',
|
|
'-1',
|
|
],
|
|
[
|
|
'0.498337030555186785-0.591083841721045048i',
|
|
'-1-i',
|
|
],
|
|
[
|
|
'-0.611108564155231518-0.347676660710495997i',
|
|
'-1-2.5i',
|
|
],
|
|
[
|
|
'-0.0484039219824442559+0.0360929239424409676i',
|
|
'-3.5+2.5i',
|
|
],
|
|
[
|
|
'0.0326859677559519711+0.0508126238588615047i',
|
|
'-3.5+i',
|
|
],
|
|
[
|
|
'0.0603397441201676464',
|
|
'-3.5',
|
|
],
|
|
[
|
|
'0.0326859677559519711-0.0508126238588615047i',
|
|
'-3.5-i',
|
|
],
|
|
[
|
|
'-0.0484039219824442559-0.0360929239424409676i',
|
|
'-3.5-2.5i',
|
|
],
|
|
[
|
|
'0.0993279274194332078',
|
|
'3',
|
|
],
|
|
];
|