Dear Mariusz, Thank you so much for the corrections and changes in the code. I had one small additional question. Can I use the same method for the attached notebook without exponential term?
Kind Regards, Ashish
Second method is faster.
Dear Mariusz, Thank you so much :)
Deleted
What defintion is p[x, s] ? without it nothing can be done.
Dear Mariusz,I have attached the updated notebook including the p[x,s] term