 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
		
	
			
		
			
				
	
	
		
			113 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			113 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| return [
 | |
|     [
 | |
|         '93502.0563713182121-65794.6618967782119j',
 | |
|         '12.34+5.67j',
 | |
|     ],
 | |
|     [
 | |
|         '-13.2772126767962807+9.90030162194353525i',
 | |
|         '3.5+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '8.95433538452066202+13.9201408750362033i',
 | |
|         '3.5+i',
 | |
|     ],
 | |
|     [
 | |
|         '16.5728246710573161',
 | |
|         '3.5',
 | |
|     ],
 | |
|     [
 | |
|         '8.95433538452066202-13.9201408750362033i',
 | |
|         '3.5-i',
 | |
|     ],
 | |
|     [
 | |
|         '-13.2772126767962807-9.90030162194353525i',
 | |
|         '3.5-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-1.23622919885634208+0.703325178113534826i',
 | |
|         '1+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.833730025131149049+0.988897705762865096i',
 | |
|         '1+i',
 | |
|     ],
 | |
|     [
 | |
|         '1.54308063481524378',
 | |
|         '1',
 | |
|     ],
 | |
|     [
 | |
|         '0.833730025131149049-0.988897705762865096i',
 | |
|         '1-i',
 | |
|     ],
 | |
|     [
 | |
|         '-1.23622919885634208-0.703325178113534826i',
 | |
|         '1-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.801143615546933715',
 | |
|         '2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.540302305868139717',
 | |
|         'i',
 | |
|     ],
 | |
|     [
 | |
|         '1',
 | |
|         '0',
 | |
|     ],
 | |
|     [
 | |
|         '0.540302305868139717',
 | |
|         '-i',
 | |
|     ],
 | |
|     [
 | |
|         '-0.801143615546933715',
 | |
|         '-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-1.23622919885634208-0.703325178113534826i',
 | |
|         '-1+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '0.833730025131149049-0.988897705762865096i',
 | |
|         '-1+i',
 | |
|     ],
 | |
|     [
 | |
|         '1.54308063481524378',
 | |
|         '-1',
 | |
|     ],
 | |
|     [
 | |
|         '0.833730025131149049+0.988897705762865096i',
 | |
|         '-1-i',
 | |
|     ],
 | |
|     [
 | |
|         '-1.23622919885634208+0.703325178113534826i',
 | |
|         '-1-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '-13.2772126767962807-9.90030162194353525i',
 | |
|         '-3.5+2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '8.95433538452066202-13.9201408750362033i',
 | |
|         '-3.5+i',
 | |
|     ],
 | |
|     [
 | |
|         '16.5728246710573161',
 | |
|         '-3.5',
 | |
|     ],
 | |
|     [
 | |
|         '8.95433538452066202+13.9201408750362033i',
 | |
|         '-3.5-i',
 | |
|     ],
 | |
|     [
 | |
|         '-13.2772126767962807+9.90030162194353525i',
 | |
|         '-3.5-2.5i',
 | |
|     ],
 | |
|     [
 | |
|         '10.0676619957777658',
 | |
|         '3',
 | |
|     ],
 | |
| ];
 |