How to Use the IMTAN Function in Google Sheets

This guide will explain how to use the IMTAN function in Google Sheets.

Complex numbers is a type of number system that extends the one-dimensional number line into two dimensions. These numbers exist in what is known as a complex plane where the x-axis is formed with real numbers and the y-axis is formed by imaginary numbers. 

This type of number system is useful in various fields, including engineering and physics. Since working with complex numbers involves using a 2-D number line, various trigonometric functions can be applied to a given complex number.

To find the tangent of a complex number, we can use the IMTAN function in Google Sheets . 

In this guide, we will provide a step-by-step tutorial on how to use the IMTAN function to calculate the tangent of a given complex number.

The Anatomy of the IMTAN Function

The syntax of the IMTAN function is as follows:

=IMTAN(number)

Let’s look at each argument to understand how to use the IMTAN function.

  • number refers to the number for which you want to find the tangent.
  • The number argument can either be the result of the COMPLEX function, a real number, or a string that follows the format “x+yi” where x and y are valid numbers.
  • the IMTAN function will return an error if the given number is not a valid complex number.
  • the function may also return an error if the tangent function is undefined for the given argument.

The Anatomy of the COMPLEX Function

The syntax of the COMPLEX function is as follows:

=COMPLEX(real_part, imaginary_part, [suffix])

Let’s look at each argument to understand how to use the COMPLEX function.

  • real_part refers to the real coefficient of the complex number.
  • imaginary_part refers to the imaginary coefficient of the complex number
  • suffix is an optional argument that determines the suffix to use for the imaginary coefficient. By default, the value for this argument is “i”.

A Real Example of Using the IMTAN Function

Let’s explore a few simple examples where we can use the IMTAN function in Google Sheets.

Using a cell reference

We can use the IMTAN function to find the tangent of a complex number given a cell reference. 

Given a complex number in cell A2, we can output the tangent using the following formula:

=IMTAN(A2)
imtan function in google sheets

In the table above, we determined that the tangent of the complex number 3+2i is -0.00988437503832249+0.965385879022133i.

Using the COMPLEX Function

We can also use the output of the COMPLEX function as input for the IMTAN function. This is useful if you’re given the value for a and b for a complex number a+bi.

get tangent from complex number coefficients

In the example above, we have a table with the coefficients of our complex numbers’ real and imaginary parts.

We can use the following formula to get the tangent of each complex number:

=IMTAN(COMPLEX(A2,B2))
imtan function in google sheets with complex function

This formula works because the COMPLEX formula uses the coefficients in columns A and B to create a valid complex number.

complex function output

In the example above, we can see the result of the COMPLEX function. Cell C2 uses the formula COMPLEX(A2,B2) to convert the coefficients 3 and 2 into the valid complex number 3+2i. 

Click on the link below to create your own copy of our examples.

Head to the next section to read our step-by-step guide on how to use the IMTAN function in Google Sheets.

How to Use the IMTAN Function in Google Sheets

  1. Select the cell where you want to output the result of the IMTAN function.
    select imtan function in google sheets
  2. Type the IMTAN function and enter a valid complex number as the sole argument. You may write down a complex number in the form “a+bi” or a cell reference of one.
    type IMTAN function
    In this example, we’ll use the formula IMTAN(A2) to find the tangent of the complex number 3+2i.
  3. Hit the Enter key to evaluate the IMTAN function.
    hit the enter key
  4. Use the AutoFill feature to find the tangents of the remaining complex numbers.
    use the autofill tool
  5. We can use the COMPLEX function to generate a valid complex number when given the coefficients of the complex number.
    use complex and imtan function in google sheets
    In this example, we’ll use the formula IMTAN(COMPLEX(A2,B2)). The COMPLEX function converts the coefficients 3 and 2 into 3+2i before using it as an argument for the IMTAN function.

These steps are all you need to know to start using the IMTAN function in Google Sheets.

FAQs

  1. Why is my IMTAN function not working?
    The IMTAN function may not work for a variety of reasons. Ensure that the complex number you’re using as an argument is in the proper format. If your complex number is missing the imaginary unit “i”, your function may result in an error.
  2. How do I find the other trigonometric functions given a complex number?
    Besides IMTAN, Google Sheets includes several other functions to help you perform trigonometric functions on complex numbers. You can use the IMCOS function to find the cosine of a complex number and the IMSIN function to find the sine of a complex number.
    If you wish to find the hyperbolic tangent instead of the tangent, you can use the IMTANH function instead.

To learn more about using Google Sheets to perform trigonometric functions on complex numbers, you can read our post on how to find the inverse hyperbolic tangent of a complex number.

That’s all for this guide! Be sure to check out our library of spreadsheet resources, tips, and tricks! 

Get emails from us about Google Sheets.

Our goal this year is to create lots of rich, bite-sized tutorials for Excel users like you. If you liked this one, you'd love what we are working on! Readers receive early access to new content.

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like