Difference between revisions of "File:Darbouxplot.png"

From specialfunctionswiki
Jump to: navigation, search
(#!/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/TimeThumbnailDimensionsUserComment
current20:48, 5 July 2016Thumbnail for version as of 20:48, 5 July 2016886 × 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 2016Thumbnail for version as of 18:24, 21 January 2016812 × 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.

The following page links to this file:

Metadata