Thanks for your reply. Please, find the attached notebook. I have written down the desired output at the end of the notebook. However, I'm getting a different result for omega.
Please provide an explicit input (in copy-pastable format) and desired output.