# IMSEC function

The IMSEC function returns the secant of the given complex number. For example, a given complex number "x+yi" returns "sec(x+yi)."

## Parts of an IMSEC function

`IMSEC(number) `

 Part Description Notes `number` The complex number for which you want the secant. This can be either the result of the COMPLEX function, a real number interpreted as a complex number with imaginary parts equal to 0, or a string in the format “x+yi” where x and y are numeric.

## Sample formulas

`IMSEC(COMPLEX(4,6))`

`IMSEC(4)`

`IMSEC("2+3i")`

## Notes

The `IMSEC` function returns an error if the given number isn't a valid complex number.

## Examples

 A B 1 Formula Result 2 `=IMSEC(COMPLEX(4,1))` -0.557760402867351-0.491827502294509i 3 `=IMSEC(3.5)` -1.06785504719181 4 `=IMSEC("3+2i")` -0.263512975158389+0.0362116365587685i

## Related functions

IMCOS:  The IMCOS function returns the cosine of the given complex number.

IMSECH:  The IMSECH function returns the hyperbolic secant of the given complex number.

COMPLEX: The COMPLEX function creates a complex number, given real and imaginary coefficients.
{"ft_lang_label":"__label__en","ft_lang_prob":0.5077115,"math_prob":0.9922231,"size":1088,"snap":"2019-51-2020-05","text_gpt3_token_len":318,"char_repetition_ratio":0.19464944,"word_repetition_ratio":0.032467533,"special_character_ratio":0.3125,"punctuation_ratio":0.11386139,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9981272,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-20T00:56:09Z\",\"WARC-Record-ID\":\"<urn:uuid:c9b82efe-3d18-4143-99a1-a83c7abb2137>\",\"Content-Length\":\"462058\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c1102b27-4c19-4b5a-a226-37ac0cb867c1>\",\"WARC-Concurrent-To\":\"<urn:uuid:ac6c8e92-a524-4b75-a571-5c6de494072c>\",\"WARC-IP-Address\":\"172.217.164.142\",\"WARC-Target-URI\":\"https://support.google.com/docs/answer/9366728?hl=en&ref_topic=3105395\",\"WARC-Payload-Digest\":\"sha1:RPDP4ZZGAV7THA4JTF2C44JQKSS5MU2A\",\"WARC-Block-Digest\":\"sha1:3VG2GUS7DAXJQUYGFRLZ7OVP2INPAOMD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250595787.7_warc_CC-MAIN-20200119234426-20200120022426-00257.warc.gz\"}"}