Question:
Answer: We can compare both equations of code and sinusoidal midas equation as shown in below snapshot:

I understand this can be tricky, just that we need to be careful with units. Furthermore, I created an excel sheet where i have done manual calculation. PFA.
Parameters are also explained in help manual.
http://manual.midasuser.com/EN_Common/Civil/865/Start/05_Load/06_Time_History_Analysis_Data/Time_Forcing_Functions.htm