IMARGUMENT Function in Google Sheets

Calculate the argument of a complex number using the IMARGUMENT function.

IMARGUMENT Function

The IMARGUMENT function in Google Sheets calculates the argument (or angle) of a complex number in radians.

Syntax

IMARGUMENT(number)
  • number: The complex number whose argument you want to calculate. This is a required parameter.

Examples

  1. Argument of a Complex Number

Calculate the argument of the complex number ‘3+4i’:

=IMARGUMENT("3+4i")

This will output approximately 0.9273 radians.

  1. Argument of a Purely Imaginary Number

Calculate the argument of the complex number ‘0+5i’:

=IMARGUMENT("0+5i")

This will output approximately 1.5708 radians.

  1. Argument of a Real Number

Calculate the argument of the number ‘7’:

=IMARGUMENT("7")

This will output 0 radians.

Notes

  • The IMARGUMENT function returns the angle in radians between the positive x-axis and the line representing the complex number in the complex plane.
  • The function returns an error if the input is not a valid complex number.
  • IMABS: Calculate the absolute value of a complex number.
  • IMAGINARY: Extract the imaginary part of a complex number.