Question: Answer in python is preferrable. Assignment-U13 C localnost:8888otebooks/Assignment1F18.ipynb Apps For quick access, place your bookmarks here on the bookmarks bar. Import bookmarks now... 3.1 The
Answer in python is preferrable.
Assignment-U13 C localnost:8888otebooks/Assignment1F18.ipynb Apps For quick access, place your bookmarks here on the bookmarks bar. Import bookmarks now... 3.1 The Madelung constant revisited In a previous assignment, you were asked to calculate the Madelung constant. Rewrite your code so that it is now a (user-defined) function madelung0 that takes as an argument L Then calculate the Madelung constant for L-1,2,3....30, and plot its value as a function of L (If you didn't get this calculation to work on the last assignment, you can use the section of code below in your main loop note it will not run without some editing to make it a full function.) for i in range(-L, L+1): for j in range(-L,L+1): for k in range(-L,L+1): else: if ((i :: 0) and (j Vtot += sgn/sqrt(i+1 sgn = 1.0 sgn = -1.0 continue e) and (k-= 0)): j*j k*k) + + 3.2 The Fibonacci Sequence Revisited 37 PM 1012/2018 O Type here to search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
