Question: Python How does the total kinetic energy of a collection of N particles grow with N assuming each particle has the same average kinetic energy?
How does the total kinetic energy of a collection of N particles grow with N assuming each particle has the same average kinetic energy? Compute the total kinetic energy for five different values of N and plot the results using pyplot (a sample program using pyplot can be found below) How does the total potential energy of a collection of N equally spaced charged particles grow with N ? Compute the the total potential energy for five different values of N and plot the results. Use the time library in python to determine how the time required to compute the kinetic and potential energy for the five different values of N; plot the time required vs N and discuss if the kinetic seems to scale linearly and the potential seems to scale quadratically with N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
