Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

cosint - Cosine integral

Syntax

Y = cosint(X)

Description

Y = cosint(X) evaluates the cosine integral function at the elements of X, a numeric matrix, or a symbolic matrix. The cosine integral function is defined by

where is Euler's constant 0.577215664...

Examples

Compute cosine integral for a numerical value:

cosint(7.2)

The result is:

0.0960

Compute the cosine integral for [0:0.1:1] :

cosint([0:0.1:1])

The result is:

  Columns 1 through 6

      -Inf   -1.7279   -1.0422   -0.6492   -0.3788   -0.1778

  Columns 7 through 11

   -0.0223    0.1005    0.1983    0.2761    0.3374

The statements

syms x;
f = cosint(x);
diff(f)

return

cos(x)/x

See Also

sinint

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS