teaching:progappchim:ph-3d

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révisionLes deux révisions suivantes
teaching:progappchim:ph-3d [2014/02/17 11:16] villersdteaching:progappchim:ph-3d [2017/02/22 12:24] villersd
Ligne 47: Ligne 47:
 Vb=0. # volume of added base Vb=0. # volume of added base
 log10dil=0 log10dil=0
-print pH_monoprotic_acid(log10dil,Vb) # sample call +print(pH_monoprotic_acid(log10dil,Vb)) # sample call 
 + 
 fig = plt.figure() fig = plt.figure()
 ax = Axes3D(fig) ax = Axes3D(fig)
 X,Y = np.linspace(-9.,0.,36),  np.linspace(0.,200.,21) X,Y = np.linspace(-9.,0.,36),  np.linspace(0.,200.,21)
-print type(X), X.ndim, X.shape, X.dtype +print(type(X), X.ndim, X.shape, X.dtype) 
-print type(Y), Y.ndim, Y.shape, Y.dtype+print(type(Y), Y.ndim, Y.shape, Y.dtype)
 Xc, Yc = np.meshgrid(X, Y) Xc, Yc = np.meshgrid(X, Y)
 Z = Xc+Yc # just to create Z Z = Xc+Yc # just to create Z
-print type(Xc), Xc.ndim, Xc.shape, Xc.dtype +print(type(Xc), Xc.ndim, Xc.shape, Xc.dtype) 
-print type(Yc), Yc.ndim, Yc.shape, Yc.dtype +print(type(Yc), Yc.ndim, Yc.shape, Yc.dtype) 
-print type(Z), Z.ndim, Z.shape, Z.dtype +print(type(Z), Z.ndim, Z.shape, Z.dtype) 
-print range(len(X))+print(range(len(X)))
 for ix in range(len(X)): for ix in range(len(X)):
     for iy in range(len(Y)):     for iy in range(len(Y)):
  • teaching/progappchim/ph-3d.txt
  • Dernière modification : 2021/02/16 09:27
  • de villersd