Please answer this!!


The sinc(x) function, abbreviated from โ€œsine cardinalโ€ is used frequently in signal processing calculations but is not available as part of the C standard library. The most common definition for the sinc(x) function is the following:

๐‘“(_๐‘ฅ)_=_๐‘ ๐‘–๐‘›๐‘(_๐‘ฅ)_ _=_s_i_n_ _(_๐‘ฅ)_๐‘ฅ _


The values of this function can be calculated easily, except for sinc(0) which gives an indeterminant form of 0/0. In this case, lโ€™Hopitalโ€™s theorem from calculus can be used to prove that sinc(0) = 1.
Create a function called sinc that accepts a numeric value (x) as a parameter and returns a numeric value that is the calculated value of sinc(x). Create a program that will prompt the user for the lower limit, and upper limit, and increment value. The program will 2 generate a table of values of sinc(x) using the user-defined function sinc. For instance, if the lower limit is -3, upper limit is 4 with increments of 0.5, the following table would be generated:

x sinc(x)
-3 0.04704
-2.5 0.239389
-2 0.454649
-1.5 0.664997
-1 0.841471
-0.5 0.958851
0 1
0.5 0.958851
1 0.841471
1.5 0.664997
2 0.454649
2.5 0.239389
3 0.04704
3.5 -0.10022
4 -0.1892
Hi you might get more answers if you show some effort and provide some code you have written. You haven't even stated what your problem with the assignment is. Make sure to use the code tags - the <> button on the format menu.

If you have compile errors, post them as well (in full)

At least post some pseudo code showing how you would go about the problem.

Also, I suspect some of the special characters have not displayed properly, so the whole post is a bit meaningless at the moment. I am not going to search on wiki to find out what the formula is.

There are people willing to help out, so we look forward to seeing your code.
Registered users can post here. Sign in or register to post.