Difference between revisions of "File:Riemannplot.png"
From specialfunctionswiki
(#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * def riemann(x): return nsum(lambda k: sin(x*(k**2))/(k**2),[1,inf]) x=np.arange(0,1,0.001); f=np.vectorize(riemann) y=f(x) plt.xlabel('x') plt.ylabel('R...) |
(Tom uploaded a new version of "File:Riemannplot.png") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | <pre> | ||
#!/usr/bin/python | #!/usr/bin/python | ||
import numpy as np | import numpy as np | ||
Line 14: | Line 15: | ||
plt.plot(x,y,linewidth=0.5) | plt.plot(x,y,linewidth=0.5) | ||
plt.show() | plt.show() | ||
+ | </pre> |
Latest revision as of 01:19, 6 July 2016
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * def riemann(x): return nsum(lambda k: sin(x*(k**2))/(k**2),[1,inf]) x=np.arange(0,1,0.001); f=np.vectorize(riemann) y=f(x) plt.xlabel('x') plt.ylabel('Riemann(x)') plt.plot(x,y,linewidth=0.5) plt.show()
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 01:19, 6 July 2016 | 875 × 885 (47 KB) | Tom (talk | contribs) | Category:Plot <pre>#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams rcParams['figure.figsize'] = 10, 10 def riemann(x): return nsum(lambda k: sin((k**2)*x)/(k**2),[1,inf])... | |
16:47, 27 January 2016 | 1,600 × 1,121 (55 KB) | Tom (talk | contribs) | #!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * def riemann(x): return nsum(lambda k: sin(x*(k**2))/(k**2),[1,inf]) x=np.arange(0,1,0.001); f=np.vectorize(riemann) y=f(x) plt.xlabel('x') plt.ylabel('R... |
- You cannot overwrite this file.
File usage
The following page links to this file: