I am trying to generate a sythetic time-series defined by a given function. I have a success in generating in a simple way. But I want to generate it by using a function. The co