Here is the sinc function we will be trying to learn with the krls object.
| 19 | // Here is the sinc function we will be trying to learn with the krls |
| 20 | // object. |
| 21 | double sinc(double x) |
| 22 | { |
| 23 | if (x == 0) |
| 24 | return 1; |
| 25 | return sin(x)/x; |
| 26 | } |
| 27 | |
| 28 | int main() |
| 29 | { |