abderrahim oulahraout

Telechargé par Abderrahim Oulhraout
# abderrahim oulahraout.py
01| import math
02| import numpy as np
03| import matplotlib.pyplot as plt
04| R=2
05| F=50
06| Vmax=220*math.sqrt(2)
07| Fe=20*F
08| W=2*math.pi*(F/Fe)
09| T=(2*math.pi)/W
10| t=np.linspace(0,T,100)
11| vt=Vmax*np.sin(W*t)
12| it=vt/R
13| pt=vt*it
14| plt.plot(t,vt,color="blue",label="la
tension en (v)")
15| plt.plot(t,it,color="red",label="le
courant est en (A)")
16| plt.plot(t,pt,color="green",label="la
puissance est en (w)")
17| plt.grid()
18| plt.legend()
19| plt.show()
1
1 / 1 100%

abderrahim oulahraout

Telechargé par Abderrahim Oulhraout
La catégorie de ce document est-elle correcte?
Merci pour votre participation!

Faire une suggestion

Avez-vous trouvé des erreurs dans linterface ou les textes ? Ou savez-vous comment améliorer linterface utilisateur de StudyLib ? Nhésitez pas à envoyer vos suggestions. Cest très important pour nous !