Method on @sym: cosint (x)

Symbolic cosine integral function.

Example:

syms x
y = cosint (x)
  ⇒ y = (sym) Ci(x)

The cosine integral is an antiderivative of cos(x)/x:

diff (y, x)
  ⇒ (sym)
      cos(x)
      ──────
        x

More specifically:

rewrite (y, 'Integral')
  ⇒ (sym)
               x
               ⌠
               ⎮ 1 - cos(t)
      log(x) - ⎮ ────────── dt + γ
               ⎮     t
               ⌡
               0

See also: @sym/sinint, eulergamma.

Package: symbolic