print "Solving differential equation representing Simple Harmonic Motion" #Declaring mass, time and spring constant as m, t and k respectively m=var('m') t=var('t') k=var('k') #Declaring displacement is fuction of time x = function('x',t) #Assuming spring constant and mass are greater than zero assume(k>0) assume(m>0) #Writing differential equation de= diff(x,t,2)+(k*x)/m #Solving differential equation z = desolve(de,dvar=x,ivar=t) #printing the result of differential equation print(z)
Excellent article. I definitely love this website. Continue the good work!
Thank you so much for your effort in writing this post.
Excellent post. I certainly love this site. Keep it up!
This is a really good read for me, thank you!