-

   rss_rss_hh_new

 - e-mail

 

 -

 LiveInternet.ru:
: 17.03.2011
:
:
: 51

:


Python

, 20 2017 . 09:20 +


, . .

, , . , Python , .


, , [1]. .

# -*- coding: utf8 -*-    
import numpy as np
import matplotlib.pyplot as plt
a=10
def f(q):     
         return a*np.e**(-0.5*q**2)
def h(q): #    
         return np.sqrt(q)
plt.figure()
q= np.arange(0, 2.01, 0.1)#  
plt.title(r'$y=f(q)$') #   TeX
plt.ylabel(r'$f(q)$') #   y   TeX
plt.xlabel(r'$q$') #   x   TeX
plt.grid(True) #
plt.plot(q,f(q)) # 
plt.figure()
plt.title(r'$y=h(q)$') #   TeX
plt.ylabel(r'$h(q)$') #   y   TeX
plt.xlabel(r'$q$') #   x   TeX
plt.grid(True) #
plt.plot(q,h(q)) # 
plt.show() # 


->

https://habrahabr.ru/post/335972/

:  

: [1] []
 

:
: 

: ( )

:

  URL