Files
PhpSpreadsheet/tests/data/Calculation/Engineering/IMSUM.php
T
Mark Baker 4e8a926cb4 Final part of breaking down the Engineering class for Excel Engineering functions into smaller individual/group classes (#1940)
* Final breaking down the Engineering class for Excel Engineering functions into smaller individual/group classes
* Additional unhappy path tests for Complex Number functions
* Fix return docblocks for floats to allow for error strings
2021-03-19 18:50:43 +01:00

64 lines
1.1 KiB
PHP

<?php
use PhpOffice\PhpSpreadsheet\Calculation\Functions;
return [
[
Functions::NAN(),
'12.34+5.67j',
'123.45+67.89i',
],
[
Functions::NAN(),
'12.34+5.67j',
'Invalid Complex Number',
],
[
'135.79+73.56j',
'12.34+5.67j',
'123.45+67.89j',
],
[
'135.79+62.22i',
'12.34-5.67i',
'123.45+67.89i',
],
[
'135.79-62.22i',
'12.34+5.67i',
'123.45-67.89i',
],
[
'135.79-73.56i',
'12.34-5.67i',
'123.45-67.89i',
],
[
'259.24+141.45i',
'12.34+5.67i',
'123.45+67.89i',
'123.45+67.89i',
],
[
Functions::NAN(),
'12.34+5.67i',
'123.45+67.89i',
'123.45+67.89j',
],
[
'111.11-73.56i',
'-12.34-5.67i',
'123.45-67.89i',
],
[
'-111.11-73.56i',
'12.34-5.67i',
'-123.45-67.89i',
],
[
'-135.79-73.56i',
'-12.34-5.67i',
'-123.45-67.89i',
],
];