The IMSUM function in Google Sheets is a valuable tool designed to facilitate calculations involving complex numbers. This function streamlines the process of adding together multiple complex numbers, making it particularly useful for users working in fields such as engineering, physics, and finance, where complex number calculations are common.
Syntax
IMSUM(comp1, [comp2, ...])
- comp1: The first complex number to be added.
- comp2: (Optional) Additional complex numbers to be added.
Example #1
IMSUM("3+2i", "1+4i")
This function sums the complex numbers 3 + 2i and 1 + 4i, resulting in 4 + 6i.
Example #2
IMSUM("-1+1i", "2-2i", "3+3i")
Here, three complex numbers: -1 + 1i, 2 – 2i, and 3 + 3i are summed, producing a total of 4 + 2i.
Example #3
IMSUM("0+0i")
In this case, adding a single complex number 0 + 0i results in 0 + 0i.
Error handling
- VALUE!: This error occurs if the input is not a valid complex number, such as a non-numeric string.
- NUM!: This error appears if an invalid number of arguments is provided, typically when too few or too many complex arguments are entered.