Formualizer Docs

IMSIN

Returns the sine of a complex number.

Evaluates complex sine and returns the result as complex text.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=IMSIN(inumber)

Arguments

ArgumentTypeRequiredDefault
inumberanyRequired—

Return type

Can return text.

How it works

The complex sine is (exp(iz) − exp(−iz)) / (2i). It is defined for every complex input.

Differences from Excel

The raw Formualizer text can contain more significant digits than Excel’s complex-number text. The examples round each coefficient to 15 significant digits for display.

Remarks

  • Input is coerced to complex-number text before parsing.
  • Uses hyperbolic components for the imaginary part.

Error cases

  • Invalid complex text returns #NUM!.

Examples

Compute the complex sine at real angle three with imaginary component four.

Formula =IMSIN("3+4i")

Expected result 3.85373803791938-27.0168132580039i

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Keep the real angle and reverse the imaginary component of the sine.

Formula =IMSIN("3-4j")

Expected result 3.85373803791938+27.0168132580039j

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

With a real angle of one radian the imaginary part vanishes.

Formula =IMSIN("1")

Expected result 0.841470984807897

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

The text “invalid” has no complex value from which to take the complex sine.

Formula =IMSIN("invalid")

Expected result #NUM!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Sine of zero

Formula =IMSIN("0")

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Sine on imaginary axis

Formula =IMSIN("i")

Expected result 1.1752011936438i

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

Why can IMSIN return non-zero imaginary output for real-looking formulas?

For complex inputs a+bi, sine uses hyperbolic terms (cosh, sinh), so imaginary components are expected.

Implementation

Engine source

On this page