* - 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
		
	
			
		
			
				
	
	
		
			113 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			113 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| return [
 | |
|     [
 | |
|         '-0.0000103999694261435177+0.999978619978377253j',
 | |
|         '12.34+5.67j',
 | |
|     ],
 | |
|     [
 | |
|         '0.00876404549513463160+0.989853240015864536i',
 | |
|         '3.5+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.145476605392064825+0.803096047002175475i',
 | |
|         '3.5+i',
 | |
|     ],
 | |
|     [
 | |
|         '0.374585640158594666',
 | |
|         '3.5',
 | |
|     ],
 | |
|     [
 | |
|         '0.145476605392064825-0.803096047002175475i',
 | |
|         '3.5-i',
 | |
|     ],
 | |
|     [
 | |
|         '0.00876404549513463160-0.989853240015864536i',
 | |
|         '3.5-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.0123221382558283535+1.00554801189505998i',
 | |
|         '1+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.271752585319511717+1.08392332733869454i',
 | |
|         '1+i',
 | |
|     ],
 | |
|     [
 | |
|         '1.55740772465490223',
 | |
|         '1',
 | |
|     ],
 | |
|     [
 | |
|         '0.271752585319511717-1.08392332733869454i',
 | |
|         '1-i',
 | |
|     ],
 | |
|     [
 | |
|         '0.0123221382558283535-1.00554801189505998i',
 | |
|         '1-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.986614298151430289i',
 | |
|         '2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.761594155955764888i',
 | |
|         'i',
 | |
|     ],
 | |
|     [
 | |
|         '0.0',
 | |
|         '0',
 | |
|     ],
 | |
|     [
 | |
|         '-0.761594155955764888i',
 | |
|         '-i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.98661429815143i',
 | |
|         '-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.01232213825582835+1.00554801189506i',
 | |
|         '-1+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.27175258531951172+1.0839233273386945i',
 | |
|         '-1+i',
 | |
|     ],
 | |
|     [
 | |
|         '-1.55740772465490223',
 | |
|         '-1',
 | |
|     ],
 | |
|     [
 | |
|         '-0.27175258531951172-1.08392332733869454i',
 | |
|         '-1-i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.01232213825582835-1.00554801189506i',
 | |
|         '-1-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.00876404549513463+0.989853240015864i',
 | |
|         '-3.5+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.1454766053920648+0.803096047002176i',
 | |
|         '-3.5+i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.374585640158594666',
 | |
|         '-3.5',
 | |
|     ],
 | |
|     [
 | |
|         '-0.1454766053920648-0.803096047002176i',
 | |
|         '-3.5-i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.00876404549513463-0.989853240015864i',
 | |
|         '-3.5-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.142546543074277805',
 | |
|         '3',
 | |
|     ],
 | |
| ];
 |