 1b96c95a44
			
		
	
	
		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
		
	
			
		
			
				
	
	
		
			90 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			90 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| return [
 | |
|     [
 | |
|         '#NUM!',
 | |
|         '12.34+5.67j',
 | |
|         '123.45+67.89i',
 | |
|     ],
 | |
|     [
 | |
|         '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',
 | |
|     ],
 | |
| ];
 |