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
117 lines
2.0 KiB
PHP
117 lines
2.0 KiB
PHP
<?php
|
|
|
|
return [
|
|
[
|
|
'3.60002071031685+0.787495469644252j',
|
|
'12.34+5.67j',
|
|
],
|
|
[
|
|
'58223.7065120385+58223.7065120386i',
|
|
'-1.234E-5+6.78E9i',
|
|
],
|
|
[
|
|
'1.9749889409211+0.632914936433528i',
|
|
'3.5+2.5i',
|
|
],
|
|
[
|
|
'1.88945163270197+0.264627043818521i',
|
|
'3.5+i',
|
|
],
|
|
[
|
|
'1.87082869338697',
|
|
'3.5',
|
|
],
|
|
[
|
|
'1.88945163270197-0.264627043818521i',
|
|
'3.5-i',
|
|
],
|
|
[
|
|
'1.9749889409211-0.632914936433528i',
|
|
'3.5-2.5i',
|
|
],
|
|
[
|
|
'1.35878298553655+0.919940868634298i',
|
|
'1+2.5i',
|
|
],
|
|
[
|
|
'1.09868411346781+0.455089860562227i',
|
|
'1+i',
|
|
],
|
|
[
|
|
'1',
|
|
'1',
|
|
],
|
|
[
|
|
'1.09868411346781-0.455089860562227i',
|
|
'1-i',
|
|
],
|
|
[
|
|
'1.35878298553655-0.919940868634298i',
|
|
'1-2.5i',
|
|
],
|
|
[
|
|
'1.11803398874989+1.11803398874989i',
|
|
'2.5i',
|
|
],
|
|
[
|
|
'0.707106781186548+0.707106781186547i',
|
|
'i',
|
|
],
|
|
[
|
|
'0',
|
|
'0',
|
|
],
|
|
[
|
|
'0.707106781186548-0.707106781186547i',
|
|
'-i',
|
|
],
|
|
[
|
|
'1.11803398874989-1.11803398874989i',
|
|
'-2.5i',
|
|
],
|
|
[
|
|
'0.919940868634298+1.35878298553655i',
|
|
'-1+2.5i',
|
|
],
|
|
[
|
|
'0.455089860562227+1.09868411346781i',
|
|
'-1+i',
|
|
],
|
|
[
|
|
'0.923879532511287+0.382683432365089i',
|
|
'0.707106781186548+0.707106781186547i',
|
|
],
|
|
[
|
|
'0.455089860562227-1.09868411346781i',
|
|
'-1-i',
|
|
],
|
|
[
|
|
'0.919940868634298-1.35878298553655i',
|
|
'-1-2.5i',
|
|
],
|
|
[
|
|
'0.632914936433528+1.9749889409211i',
|
|
'-3.5+2.5i',
|
|
],
|
|
[
|
|
'0.264627043818521+1.88945163270197i',
|
|
'-3.5+i',
|
|
],
|
|
[
|
|
'1.14602144155088E-16+1.87082869338697i',
|
|
'-3.5',
|
|
],
|
|
[
|
|
'0.264627043818521-1.88945163270197i',
|
|
'-3.5-i',
|
|
],
|
|
[
|
|
'0.632914936433528-1.9749889409211i',
|
|
'-3.5-2.5i',
|
|
],
|
|
[
|
|
'3',
|
|
'9',
|
|
],
|
|
];
|