* - 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
		
	
	
		
			1.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			113 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| return [
 | |
|     [
 | |
|         '93502.0563677416700-65794.6618992949199j',
 | |
|         '12.34+5.67j',
 | |
|     ],
 | |
|     [
 | |
|         '-13.2530202358612674+9.91837391474661948i',
 | |
|         '3.5+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '8.93801966862639899+13.9455510970032033i',
 | |
|         '3.5+i',
 | |
|     ],
 | |
|     [
 | |
|         '16.5426272876349976',
 | |
|         '3.5',
 | |
|     ],
 | |
|     [
 | |
|         '8.93801966862639899-13.9455510970032033i',
 | |
|         '3.5-i',
 | |
|     ],
 | |
|     [
 | |
|         '-13.2530202358612674-9.91837391474661948i',
 | |
|         '3.5-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.941504933270867276+0.923490776043173241i',
 | |
|         '1+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.634963914784736108+1.29845758141597729i',
 | |
|         '1+i',
 | |
|     ],
 | |
|     [
 | |
|         '1.17520119364380146',
 | |
|         '1',
 | |
|     ],
 | |
|     [
 | |
|         '0.634963914784736108-1.29845758141597729i',
 | |
|         '1-i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.941504933270867276-0.923490776043173241i',
 | |
|         '1-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.598472144103956494i',
 | |
|         '2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.841470984807896507i',
 | |
|         'i',
 | |
|     ],
 | |
|     [
 | |
|         '0.0',
 | |
|         '0',
 | |
|     ],
 | |
|     [
 | |
|         '-0.841470984807896507i',
 | |
|         '-i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.5984721441039565i',
 | |
|         '-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.941504933270867+0.923490776043173i',
 | |
|         '-1+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.63496391478473611+1.29845758141597729i',
 | |
|         '-1+i',
 | |
|     ],
 | |
|     [
 | |
|         '-1.17520119364380146',
 | |
|         '-1',
 | |
|     ],
 | |
|     [
 | |
|         '-0.63496391478473611-1.29845758141597729i',
 | |
|         '-1-i',
 | |
|     ],
 | |
|     [
 | |
|         '0.941504933270867-0.923490776043173i',
 | |
|         '-1-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '13.25302023586127+9.91837391474662i',
 | |
|         '-3.5+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-8.9380196686264+13.9455510970032i',
 | |
|         '-3.5+i',
 | |
|     ],
 | |
|     [
 | |
|         '-16.5426272876349976',
 | |
|         '-3.5',
 | |
|     ],
 | |
|     [
 | |
|         '-8.9380196686264-13.9455510970032i',
 | |
|         '-3.5-i',
 | |
|     ],
 | |
|     [
 | |
|         '13.25302023586127-9.91837391474662i',
 | |
|         '-3.5-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '10.0178749274099019',
 | |
|         '3',
 | |
|     ],
 | |
| ];
 |