sinc
Contents: Description, Arguments, Usage, Examples, Sub-Functions, Related Functions, Source Supported Under Version: > 1.23
Description Sinc function (a.k.a. sine cardinal, sampling function)
Arguments and Return Values Parameters: A numeric array Return Value: A float array of the same organization as the input containing the sinc of the input.
Usage Syntax: sinc(x) 'x' is any numeric array This function just uses sinc(x) = sin(x)/x, except at x = 0, where the value of sinc is defined to be 1. Sinc is sometimes defined with additional factors of π inside its sine and in its denominator; see http://mathworld.wolfram.com/SincFunction.html Return format is double if input is double; float otherwise When sinc() is entered without any arguments, it prints its description, as shown below.
Examples dv> sinc() Sinc function (a.k.a. sine cardinal, sampling function) This version is defined such that its zeros occur at nonzero integer multiples of pi. sinc(x) = sin(x)/x for all x except zero sinc(0) = 1, by definition See http://mathworld.wolfram.com/SincFunction.html S.Marshall 11-11-2009 0 dv> a = create(11) 11x1x1 array of int, bsq format [44 bytes] 0 1 2 3 4 5 6 7 8 9 10 dv> sinc(a) 11x1x1 array of float, bsq format [44 bytes] 1.00000000000000 0.841470956802368 0.454648703336716 0.0470400005578995 -0.189200624823570 -0.191784858703613 -0.0465692467987537 0.0938552245497704 0.123669780790806 0.0457909442484379 -0.0544021129608154 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Major Sub-Functions
Recent Library Changes Created On: 11-18-2009 |