=IMARGUMENT(inumber)
This example uses the simplest form of the IMARGUMENT function. It takes one argument, which is a cell reference. For example, if cell A1 contains the value "2+i", then the function =IMARGUMENT(A1) will return the angle in radians of the complex number in A1. In this case, the output would be 45 degrees.
This example uses a more complex argument with the IMARGUMENT function. If you want to input a complex number directly into the function, you can use the syntax =IMARGUMENT("2-i"). This will return the angle in radians of the complex number "2-i". In this case, the output would be -135 degrees.
This example shows how you can use exponential notation with the IMARGUMENT function. For example, if you wanted to calculate the argument for the complex number "2e^(iπ/3)", the syntax would be =IMARGUMENT("2e^(iπ/3)"). This would return the angle in radians of the complex number, which in this case would be 60 degrees.
The IMARGUMENT function calculates an angle in radians, given a complex number as an argument.