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

97 lines
2.0 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',
],
[
'0.0961415519586104-0.00694248653276682j',
'12.34+5.67j',
'123.45+67.89j',
],
[
'0.0961415519586104+0.00694248653276682i',
'-12.34+5.67i',
'-123.45+67.89i',
],
[
'0.0573549954111941+0.0774712890924744i',
'-12.34-5.67i',
'-123.45+67.89i',
],
[
'0.0573549954111941-0.0774712890924744i',
'-12.34+5.67i',
'-123.45-67.89i',
],
[
'0.0961415519586104-0.00694248653276682i',
'-12.34-5.67i',
'-123.45-67.89i',
],
[
'-0.0573549954111941-0.0774712890924744i',
'12.34+5.67i',
'-123.45+67.89i',
],
[
'-0.0961415519586104-0.00694248653276682i',
'12.34-5.67i',
'-123.45+67.89i',
],
[
'-0.0961415519586104+0.00694248653276682i',
'12.34+5.67i',
'-123.45-67.89i',
],
[
'-0.0573549954111941+0.0774712890924744i',
'12.34-5.67i',
'-123.45-67.89i',
],
[
'-0.0573549954111941+0.0774712890924744i',
'-12.34+5.67i',
'123.45+67.89i',
],
[
'-0.0961415519586104+0.00694248653276682i',
'-12.34-5.67i',
'123.45+67.89i',
],
[
'-0.0961415519586104-0.00694248653276682i',
'-12.34+5.67i',
'123.45-67.89i',
],
[
'-0.0573549954111941-0.0774712890924744i',
'-12.34-5.67i',
'123.45-67.89i',
],
[
'1',
'-12.34-5.67i',
'-12.34-5.67i',
],
[
'-0.0767482736849023-0.0422068878126206i',
'-12.34',
'123.45-67.89i',
],
[
'1+0.459481361426256i',
'-12.34-5.67i',
'-12.34',
],
];