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

88 lines
1.5 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',
],
[
'12.34+5.67j',
'12.34+5.67j',
],
[
'6454.936089+8718.895647i',
'12.34+5.67i',
'123.45+67.89i',
'5.67',
],
[
'6454.936089+8718.895647j',
'12.34+5.67j',
'123.45+67.89j',
'5.67',
],
[
'1138.4367+1537.7241j',
'12.34+5.67j',
'123.45+67.89j',
],
[
'1908.3093+137.8011i',
'12.34-5.67i',
'123.45+67.89i',
],
[
'1908.3093-137.8011i',
'12.34+5.67i',
'123.45-67.89i',
],
[
'1138.4367-1537.7241i',
'12.34-5.67i',
'123.45-67.89i',
],
[
'-1908.3093-137.8011i',
'-12.34+5.67i',
'123.45+67.89i',
],
[
'-1138.4367-1537.7241i',
'-12.34-5.67i',
'123.45+67.89i',
],
[
'-1908.3093+137.8011i',
'12.34+5.67i',
'-123.45+67.89i',
],
[
'1138.4367-1537.7241i',
'-12.34+5.67i',
'-123.45+67.89i',
],
[
'1138.4367+1537.7241i',
'-12.34-5.67i',
'-123.45-67.89i',
],
[
'-1523.373+837.7626i',
'-12.34',
'123.45-67.89i',
],
[
'152.2756+69.9678i',
'-12.34-5.67i',
'-12.34',
],
];