RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
sinc.cpp
Go to the documentation of this file.
1 //
2 // File = sinc.cpp
3 //
4 
5 #include "sinc.h"
6 #include <math.h>
7 #include <stdlib.h>
8 
9 double
10 sinc(double x)
11 {
12  if (x == 0.0) {
13  return (1.0);
14  } else {
15  return (sin(x) / x);
16  }
17 }
18 
19 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
double sinc(double x)
Definition: sinc.cpp:10