The IMSUB function in Google Sheets is a valuable tool for handling complex numbers in spreadsheet applications. It is used to compute the difference between two complex numbers, which can be particularly useful in mathematical calculations, engineering, and data analysis when working with complex data sets.
Syntax
IMSUB(complex_number1, complex_number2)
- complex_number1: The first complex number from which you want to subtract.
- complex_number2: The second complex number that you want to subtract from the first.
Example #1
IMSUB("2+3i", "1+1i")
This function call subtracts the complex number “1+1i” from “2+3i”, resulting in “1+2i”.
Example #2
IMSUB("4-2i", "2+3i")
This function call takes “2+3i” away from “4-2i”, yielding the result “2-5i”.
Example #3
IMSUB("0+0i", "5-1i")
This function will subtract “5-1i” from “0+0i”, giving you the result “-5+1i”.
Error handling
- VALUE! This error occurs if the input is not a valid complex number.
- NUM! This can arise if the complex number arguments do not follow the correct format.
- N/A This error represents that a parameter is missing or incorrectly referenced.