主要给大家介绍了关于利用python如何求解物理学中的双弹簧质能系统的相关资料,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧。
1
When I began teaching computational physics, the rst decision facing me was \which language do I use?" With the sheer number of good programming languages available, it was not an obvious choice. I wanted to teach the course with a general-purpose language, so that students could easily take advantage of the skills they gained in the course in elds outside of physics. The language had to be readily available on all major operating systems. Finally, the language had to be free. I wanted to provide the students with a skill that they did not have to pay to use! It was roughly a month before my rst computational physics course began that I was introduced to Python by Bruce Sherwood and Ruth Chabay, and I realized immediately that this was the language I needed for my course. It is simple and easy to learn; it's also easy to read what another programmer has written in Python and gure out what it does. Its whitespace-specic formatting forces new programmers to write readable code. There are numeric libraries available with just what I needed for the course. It's free and available on all major operating systems. And although it is simple enough to allow students with no prior programming experience to solve interesting problems early in the course, it's powerful enough to be used for \serious" numeric work in physics | and it is used for just this by the astrophysics community. Finally, Python is named for my favorite British comedy troupe. What's not to like?
2022-01-10 23:46:01 7.55MB python 计算物理
1