PhpSpreadsheet/tests/data/Calculation/Engineering/IMABS.php

113 lines
1.4 KiB
PHP

<?php
return [
[
'12.34+5.67j',
13.58029822942,
],
[
'1.234E-5+6.78E9i',
6780000000.0,
],
[
'3.5+2.5i',
4.3011626335209998,
],
[
'3.5+i',
3.6400549446400001,
],
[
'3.5',
3.5,
],
[
'3.5-i',
3.6400549446400001,
],
[
'3.5-2.5i',
4.3011626335209998,
],
[
'1+2.5i',
2.6925824035670001,
],
[
'1+i',
1.4142135623730001,
],
[
'1',
1,
],
[
'1-i',
1.4142135623730001,
],
[
'1-2.5i',
2.6925824035670001,
],
[
'2.5i',
2.5,
],
[
'i',
1,
],
[
'0',
0,
],
[
'-i',
1,
],
[
'-2.5i',
2.5,
],
[
'-1+2.5i',
2.6925824035670001,
],
[
'-1+i',
1.4142135623730001,
],
[
'-1',
1,
],
[
'-1-i',
1.4142135623730001,
],
[
'-1-2.5i',
2.6925824035670001,
],
[
'-3.5+2.5i',
4.3011626335209998,
],
[
'-3.5+i',
3.6400549446400001,
],
[
'-3.5',
3.5,
],
[
'-3.5-i',
3.6400549446400001,
],
[
'-3.5-2.5i',
4.3011626335209998,
],
];