Difference between revisions of "File:Darbouxplot.png"
From specialfunctionswiki
(#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * def darboux(x): return nsum(lambda k: sin(fac(k+1)*x)/fac(k),[1,inf]) x=np.arange(0,5,0.0001); f=np.vectorize(darboux) y=f(x) plt.xlabel('x') plt.ylabel...) |
(Tom uploaded a new version of "File:Darbouxplot.png") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | #!/usr/bin/python | + | <pre>#!/usr/bin/python |
import numpy as np | import numpy as np | ||
import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
Line 13: | Line 13: | ||
plt.ylabel('Darboux(x)') | plt.ylabel('Darboux(x)') | ||
plt.plot(x,y,linewidth=0.5) | plt.plot(x,y,linewidth=0.5) | ||
− | plt.show() | + | plt.show()</pre> |
Latest revision as of 20:48, 5 July 2016
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * def darboux(x): return nsum(lambda k: sin(fac(k+1)*x)/fac(k),[1,inf]) x=np.arange(0,5,0.0001); f=np.vectorize(darboux) y=f(x) plt.xlabel('x') plt.ylabel('Darboux(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 | 20:48, 5 July 2016 | 886 × 885 (70 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 darboux(x): return nsum(lambda k: sin(fac(k+1)*x)/fac(k),[1,inf... | |
18:24, 21 January 2016 | 812 × 612 (35 KB) | Tom (talk | contribs) | #!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * def darboux(x): return nsum(lambda k: sin(fac(k+1)*x)/fac(k),[1,inf]) x=np.arange(0,5,0.0001); f=np.vectorize(darboux) y=f(x) plt.xlabel('x') plt.ylabel... |
- You cannot overwrite this file.
File usage
The following page links to this file: