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

cosint(7.2) returns 0.0960.

cosint([0:0.1:1]) returns

Columns 1 through 7  

    Inf   -1.7279   -1.0422   -0.6492   -0.3788   -0.1778   -0.0223
 
Columns 8 through 11 
 
    0.1005    0.1983    0.2761    0.3374

The statements

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

return

cos(x)/x

See Also

sinint

  


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