Difference between revisions of "File:Faberf2plot.png"

From specialfunctionswiki
Jump to: navigation, search
(<pre> #!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * def distfnc(x): return min(x-floor(x),ceil(x)-x) def faber2(x): return nsum(lambda k: distfnc(2**(fac(k))*x)/(fac(k)),[1,inf]) x=np.arang...)
 
(Tom uploaded a new version of "File:Faberf2plot.png")
 
(No difference)

Latest revision as of 20:58, 5 July 2016

#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
from mpmath import *

def distfnc(x):
        return min(x-floor(x),ceil(x)-x)

def faber2(x):
        return nsum(lambda k: distfnc(2**(fac(k))*x)/(fac(k)),[1,inf])

x=np.arange(0.0,1.0,0.00001);
f=np.vectorize(faber2)
y=f(x)
plt.xlabel('x')
plt.ylabel('Faber F2(x)')
plt.plot(x,y,linewidth=0.5)
plt.savefig('faberf2plot.png')

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current20:58, 5 July 2016Thumbnail for version as of 20:58, 5 July 2016875 × 885 (48 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 distfnc(x): return min(x-floor(x),ceil(x)-x) def faberf2(x):...
19:38, 22 January 2016Thumbnail for version as of 19:38, 22 January 2016800 × 600 (27 KB)Tom (talk | contribs)<pre> #!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * def distfnc(x): return min(x-floor(x),ceil(x)-x) def faber2(x): return nsum(lambda k: distfnc(2**(fac(k))*x)/(fac(k)),[1,inf]) x=np.arang...
  • You cannot overwrite this file.

The following page links to this file:

Metadata