tag:blogger.com,1999:blog-5952320191615496730.post8505023991502176339..comments2026-04-16T08:33:01.906+01:00Comments on The Beginner Programmer: Basic physics and Python: simple harmonic motionMichttp://www.blogger.com/profile/18151225177833588981noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-5952320191615496730.post-16080629480656404562021-10-28T05:43:30.920+01:002021-10-28T05:43:30.920+01:00Thanks for the lovely simulation codes, man.Thanks for the lovely simulation codes, man.Tlhomphanohttps://www.blogger.com/profile/02351670301585255943noreply@blogger.comtag:blogger.com,1999:blog-5952320191615496730.post-52783733658694378702020-04-30T03:13:12.475+01:002020-04-30T03:13:12.475+01:00hey i'm having a problem programing a spring w...hey i'm having a problem programing a spring with potential and gravitational energy using the formula (1/2)Kx^2 + (1/6)Yx^3, i know we have to derive that to get force but i can't seem to add it up to create a cubic or more cubic graph. please help!!!!Anonymoushttps://www.blogger.com/profile/16019260557608995341noreply@blogger.comtag:blogger.com,1999:blog-5952320191615496730.post-10941783304998050032019-01-05T12:01:47.922+00:002019-01-05T12:01:47.922+00:00please if possible explain the meaning of
p1 = ...please if possible explain the meaning of <br /> p1 = [position(fun(counter))[0][0],position(fun(counter))[0][1]]<br /> p2 = [position(fun(counter))[1][0],position(fun(counter))[1][1]]<br /> p3 = [position(fun(counter))[2][0],position(fun(counter))[2][1]]<br /> p4 = [position(fun(counter))[3][0],position(fun(counter))[3][1]]<br /><br />Anonymoushttps://www.blogger.com/profile/00439192871532631544noreply@blogger.comtag:blogger.com,1999:blog-5952320191615496730.post-68151555628186735632018-11-02T10:54:15.928+00:002018-11-02T10:54:15.928+00:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/02331238234955400143noreply@blogger.comtag:blogger.com,1999:blog-5952320191615496730.post-79798999237473559042018-02-08T16:25:03.793+00:002018-02-08T16:25:03.793+00:00That's some horribly inefficient and convolute...That's some horribly inefficient and convoluted code on my behalf I'm afraid! :D that line simply returns p1 from the position function, you could replace it with p1 = position(fun(counter))[0]. p1 is one of the four points you need to draw a rectangle. <br /><br />plt.gca does nothing, it's a comment. Michttps://www.blogger.com/profile/18151225177833588981noreply@blogger.comtag:blogger.com,1999:blog-5952320191615496730.post-29957351476038989212018-02-07T09:22:29.858+00:002018-02-07T09:22:29.858+00:00p1 = [position(fun(counter))[0][0],position(fun(co...p1 = [position(fun(counter))[0][0],position(fun(counter))[0][1]] can i know what does this line do ? im new to python , i search for plt.gca and i still dun get it Anonymoushttps://www.blogger.com/profile/00654979294124885666noreply@blogger.comtag:blogger.com,1999:blog-5952320191615496730.post-78097744790542937472016-12-21T18:56:12.253+00:002016-12-21T18:56:12.253+00:00Thanks for reading Marty!Thanks for reading Marty!Michttps://www.blogger.com/profile/18151225177833588981noreply@blogger.comtag:blogger.com,1999:blog-5952320191615496730.post-11429288657232209612016-12-19T13:19:45.176+00:002016-12-19T13:19:45.176+00:00Thanks. I'd like to write an animation progra...Thanks. I'd like to write an animation program that simulates the forces of gravitational attraction between two bodies. First have to learn how to use animate.Martyhttps://www.blogger.com/profile/15082670857073168403noreply@blogger.com