## generate 100 data points with noise level 0
## drawn from the interval [-4,4]
sincdata(100)
## generate 1000 data points with noise level 0.7
## drawn from the interval [-10, 10]
sincdata(100, 0.7, a = -10, b = 10)
Run the code above in your browser using DataLab