When subtracting complex numbers, the real and imaginary coefficients are subtracted separately.
I.e. the equation to subtract complex number c+di from complex number a+bi is:
The Excel Imsub function calculates the difference between two complex numbers (i.e. subtracts one complex number from another).
The syntax of the function is:
Note that complex numbers are simply stored as text in Excel. When a text string in the format "a+bi" or "a+bj" is supplied to one of Excel's built-in complex number functions, this is interpreted as a complex number.
Also the complex number functions can accept a simple numeric value, as this is equivalent to a complex number whose imaginary coefficient is equal to 0.
Therefore, the inumber arguments can be supplied to the Excel Imsub function as either:
In the spreadsheet below, the Excel Imsub function is used find the difference between three different pairs of complex numbers.
Note that, in the above example spreadsheet:
Further details of the Excel Imsub function are provided on the Microsoft Office website.
If you get an error from the Excel Imsub function, this is likely to be one of the following:
|#NUM!||-||Occurs if one or both of the supplied inumber arguments are not recognised as complex numbers.|
|#VALUE!||-||Occurs if one or both of the supplied inumber arguments are logical values.|