Difference between revisions of "File:Integerdeltacosine,a=0.6,s=0plot.png"

From timescalewiki
Jump to: navigation, search
 
Line 37: Line 37:
 
plt.xlim([-15,20])
 
plt.xlim([-15,20])
  
plt.savefig('integercosine,a=0.6,s=0plot.png',bbox_inches='tight',pad_inches=0.15)</pre>
+
plt.savefig('integerdeltacosine,a=0.6,s=0plot.png',bbox_inches='tight',pad_inches=0.15)</pre>

Latest revision as of 07:25, 1 June 2016

#!/usr/bin/python
import numpy as np
import matplotlib.pyplot as plt
from mpmath import *
from pylab import rcParams
rcParams['figure.figsize'] = 10, 10

x=np.arange(-15,20,1);
def integerexp(a,t,s):
        return (1+a)**(t-s)

def returnzero(t):
        return 0

def integercosine(t): # a=0.6,s=0
        return (integerexp(0.6j,t,0)+integerexp(-0.6j,t,0))/2
f=np.vectorize(lambda x : integercosine(x).real)
y=f(x)
def g(x):
        return 0
h=np.vectorize(g)
y2=h(x)

fig, ax = plt.subplots()

plt.xlabel(r'$t$')
plt.ylabel(r'$\cos_{0.6}(t,0;\mathbb{Z})$')
plt.title(r'Time scale delta cosine function')

plt.scatter(x,y,color='Black',s=40)
plt.plot(x,y2,'--',linewidth=2,color='Black')

plt.xlim([-15,20])

plt.savefig('integerdeltacosine,a=0.6,s=0plot.png',bbox_inches='tight',pad_inches=0.15)

File history

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

Date/TimeThumbnailDimensionsUserComment
current07:24, 1 June 2016Thumbnail for version as of 07:24, 1 June 2016881 × 898 (24 KB)Tom (talk | contribs)Category:plot Category:deltacosine Category:timescale:integers Category:specialfunction <pre>#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams rcParams['figure.figsize']...
  • You cannot overwrite this file.

The following 3 pages link to this file:

Metadata