File:Gpfglyph.png

From specialfunctionswiki
Revision as of 05:24, 22 June 2016 by Tom (talk | contribs) (Category:greatestprimefactorglyph <pre>#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt import fractions from mpmath import * from pylab import rcParams rcParams['figure.figsize'] = 2.4,2.4 def gpf(n): i = 2 whi...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Gpfglyph.png(186 × 192 pixels, file size: 5 KB, MIME type: image/png)
#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
import fractions
from mpmath import *
from pylab import rcParams
rcParams['figure.figsize'] = 2.4,2.4

def gpf(n):
        i = 2
        while i * i <= n:
                if n % i:
                        i += 1
                else:
                        n //= i
        return n


x=np.arange(0,200,1)
f=np.vectorize(gpf)
y=f(x)

x2=np.arange(-500,500,0.1)
def g(x):
        return 0
h=np.vectorize(g)
y2=h(x2)

fig, ax = plt.subplots()
ax.spines['top'].set_color('none')
ax.spines['left'].set_color('none')
ax.spines['right'].set_color('none')
plt.tick_params(axis='x', which='both', bottom='off', top='off', labelbottom='off')
plt.tick_params(axis='y', which='both', left='off', right='off', labelleft='off')

plt.scatter(x,y,linewidth=1,color='Black')
plt.plot(x2,y2,linewidth=1,color='Black')
plt.plot(y2,x2,linewidth=1,color='Black')

plt.xlim(0,200)
plt.ylim(0,200)

plt.savefig('gpfglyph.png',bbox_inches='tight',pad_inches=0.0)

File history

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

Date/TimeThumbnailDimensionsUserComment
current05:24, 22 June 2016Thumbnail for version as of 05:24, 22 June 2016186 × 192 (5 KB)Tom (talk | contribs)Category:greatestprimefactorglyph <pre>#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt import fractions from mpmath import * from pylab import rcParams rcParams['figure.figsize'] = 2.4,2.4 def gpf(n): i = 2 whi...
  • You cannot overwrite this file.

There are no pages that link to this file.

Metadata