Difference between revisions of "File:Struveh0plot.png"

From specialfunctionswiki
Jump to: navigation, search
(#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams import scipy.special rcParams['figure.figsize'] = 10, 10 x=np.arange(-30,30,0.001); f=np.vectorize(lambda x: scipy.special.struve(0,x)...)
 
 
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 21: Line 21:
 
plt.plot(x,y,linewidth=2,color='Black')
 
plt.plot(x,y,linewidth=2,color='Black')
  
plt.savefig('struveh0plot.png',bbox_inches='tight',pad_inches=0.15)
+
plt.savefig('struveh0plot.png',bbox_inches='tight',pad_inches=0.15)</pre>

Latest revision as of 00:05, 22 October 2017

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

x=np.arange(-30,30,0.001);
f=np.vectorize(lambda x: scipy.special.struve(0,x))
y=f(x)
g=np.vectorize(lambda x: 1)

fig, ax = plt.subplots()

plt.xlabel(r'$x$')
plt.ylabel(r'$\mathbf{H}_0(x)$')

plt.xlim(-30,30)

plt.plot(x,y,linewidth=2,color='Black')

plt.savefig('struveh0plot.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
current00:05, 22 October 2017Thumbnail for version as of 00:05, 22 October 2017880 × 846 (49 KB)Tom (talk | contribs)#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt from mpmath import * from pylab import rcParams import scipy.special rcParams['figure.figsize'] = 10, 10 x=np.arange(-30,30,0.001); f=np.vectorize(lambda x: scipy.special.struve(0,x)...
  • You cannot overwrite this file.

The following page links to this file:

Metadata