This was originally posted in a non-homework forum and does not use the template.
I came across this problem which says" A pendulum is hung by roof of a train having mass 1 kg . The train then accelerates and pendulum makes an angle with vertical. What is acceleration of train? " Is it equal to gsinθ?