IMCOS in Google Sheets: Verify Complex Cosines and Imaginary Sign Changes
Calculate complex cosine in Google Sheets, compare supported real inputs with complex data and audit even symmetry and full square identities.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: IMCOS(number) returns a complex cosine. Google permits real numeric inputs, COMPLEX results and complex strings; a real input is interpreted with imaginary coefficient zero.
Availability and version history
- Introduced: first introduction date is not established by the reviewed official history; no desktop release number is inferred.
- Availability: documented in the rolling Google Sheets service; these examples use the web worksheet workflow.
- Checked: October 14, 2026; official IMCOS reference. Documentation and independent models, with no native Sheets execution or wider client certification.
Syntax and the independent equation
=IMCOS(number)
The number argument is required. Google states that invalid complex input produces an error without assigning a specific error code in this reference.
For x+yi, the independent mathematical model has real coefficient COS(x)×COSH(y) and imaginary coefficient negative SIN(x)×SINH(y). The minus sign matters. The dedicated page supplies worked values rather than printing this component equation.
Use COMPLEX for numeric coordinates and IMREAL or IMAGINARY to inspect the resulting components.
Example 1: calculate a mixed-input table
Enter only the first column as Plain text in A2:A4. Put =IMCOS(A2) in B2 and fill down, then extract coefficients into C and D.
| A, complex input | C, expected real coefficient | D, expected imaginary coefficient |
|---|---|---|
| 2+0.5i | −0.469257978 | −0.473830620 |
| 0.5+2i | 3.301637333 | −1.738809504 |
| 2-0.5i | −0.469257978 | 0.473830620 |
The first and third rows have conjugate inputs and conjugate outputs. Exchanging the coordinates, as in the second row, is a different transformation.
For a separate supported numeric input, =IMCOS(0.5) has independent real result approximately 0.877582562. It agrees with ordinary COS(0.5), with radians as the angle unit.
Example 2: expose the imaginary minus sign
For 2+0.5i, evaluate:
=COS(2)*COSH(0.5)
=-SIN(2)*SINH(0.5)
The expected coefficients are approximately −0.469257978 and −0.473830620. Dropping the minus sign from the second formula would produce a different complex value.
Constructing both numeric helpers with COMPLEX reproduces the independent output model. This is a coefficient check, not an attempt to parse the displayed text manually.
The trigonometric arguments are radians. The hyperbolic functions operate on the imaginary coefficient as a numeric input to the mathematical identity; they are not degree-formatting operations.
Advanced example: reproduce Google’s documented controls
The dedicated source provides three useful input forms:
=IMCOS(COMPLEX(4,1))has expected coefficients approximately −1.008624813 and 0.889395196.=IMCOS(3.5)has expected real result approximately −0.936456687.=IMCOS("3+2i")has expected coefficients approximately −3.724545505 and −0.511822570.
The independent component equation corroborates all three. A positive imaginary coefficient in the first control is consistent with the minus sign in the equation, because SIN(4) is negative.
These examples establish the documented forms, not a complete type-coercion policy for arbitrary imports or blank cells.
Advanced example: contrast the real and imaginary axes
For the real angle 45 degrees, =IMCOS(RADIANS(45)) has expected result SQRT(2)/2, approximately 0.707106781.
For the pure-imaginary input 0+0.5i, the independent result has real coefficient COSH(0.5), approximately 1.127625965, and imaginary coefficient zero.
A complex cosine can therefore exceed the familiar real cosine bound. Clipping that second result to one would change a legitimate mathematical value.
The input’s direction matters even when a magnitude summary looks similar. Keep both original coordinates beside the derived output when interpreting a complex model.
Advanced example: distinguish even symmetry from conjugation
Negating both coordinates of 2+0.5i gives −2−0.5i. Cosine is even in the independent model, so their complete outputs agree.
Changing only the imaginary sign gives 2−0.5i instead. Its output is the conjugate, with the same real coefficient and opposite imaginary coefficient as shown in the primary table.
Negation, conjugation and coordinate exchange are three distinct operations. A formula review should check which one a minus sign actually performs.
Advanced example: square complete quantities
For z=2+0.5i, the full complex identity is COS(z) squared plus SIN(z) squared equals one. Use IMPRODUCT to square IMCOS and IMSIN results, then IMSUM to combine them.
Both final coefficients should be checked: real one and imaginary zero. Checking only the real component could miss a sign error that leaves an uncancelled imaginary term.
Adding the squared magnitudes instead gives COSH(1), approximately 1.543080635. That different answer is not a failed identity; it comes from changing the operations before adding.
Error and precision boundaries
Google documents an error for invalid complex input but does not classify its exact code here. Boolean/blank coercion, alternate text parsing, error precedence and native overflow thresholds remain unverified.
Use full calculated values and explicit tolerances for approximate checks. The tables show independently calculated nine-decimal displays, not target-native strings. No native Sheets execution was performed.
References and verification
Examples use fictional data, English function names and comma separators. Expected outputs are independent mathematical calculations or explicitly documented rules, not native Sheets captures. Check the spreadsheet locale when reproducing punctuation-sensitive formulas.