File Exchange

image thumbnail

Fast trigonometric integration

version 1.0.2 (4.49 KB) by Erik Koene
A fast approximation of sinint or Si(x) and cosint or Ci(x) to ~machine precision using Padé approximants.


Updated 03 Dec 2019

View License

This function approximates the integral of sinc(t)=sin(t)/t for the range of 0 to x, as well as the integral of cos(t)/t for the range x to infinity. The resulting functions are often called Si(x) and Ci(x), as e.g. found at . The function uses Padé approximants to approximate the form of functions, and is accurate to within machine precision for the entire range of computation. The resulting functions are orders of magnitude faster than the native MATLAB implementation.

The result only applies to real-valued numbers. The Ci(x) has been continued into negative range through a mirroring procedure.

Cite As

Erik Koene (2020). Fast trigonometric integration (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)



updated the name*


Added the Ci(x) function.

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags