Question: Use numpy and mathplotlibpyplot Write a calculate _ LJ function that includes parameters for setting and . After writing the function, perform a set of

Use numpy and mathplotlibpyplot
Write a calculate_LJ function that includes parameters for setting
and
.
After writing the function, perform a set of calculations with
and
both equal to one. Using these values, calculate the Lennard Jones potential energy for a range of distances, r, from r =0.1 to r =5 in increments of 0.1. Save your results in a list.
Next, perform a set of calculations where
is equal to 2 and
is equal to one. Then set
equal to 1 and
equal to two. For each set of calculations, save your result in a list.
Visualize all three results on a graph using matplotlib.
In your submission, include a markdown cell that contains a reflection (at least five sentences) on your approach and observations.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!