from sympy import *
import numpy as np
Run to view results
x = symbols("x")
pc = 0.0178
pa = 0.0278
ps = 0.0164
l = 300*10**-2
A = 0.04
#A)
Rc = pc*l/A
print("A) Rc=",Rc,"ohm")
#B)
Ra = pa*l/A
print("B) Ra =",Ra,"Ohm")
#C)
Rs = 3
ls = solve((ps*x/A)-Rs,x)
print("C) Die Drahtlänge beträgt",ls,"mm")
Run to view results
r1 = 60
r2 = 200
r3 = 50
r4 = 80
r5 = 100
r6 = 120
#A)
r23 = 1/((1/r2)+(1/r3))
r456 = 1/((1/r4)+(1/r5)+(1/r6))
re = r23+r456+r1
print("A) Re=",re,"Ohm")
#B)
ie = 1.5
ue = re*ie
print("B) Ue=",ue,"V")
Run to view results
pc = 0.0178
ac = 0.0039
pa = 0.0278
aa = 0.0039
ps = 0.0961
As = 0.0048
l = 800
A = 0.5
#A)
Rc = pc*l/A
print("A) Rc bei 20 Grad=",Rc,"Ohm")
#B)
t1 = 20
t2 = 45
R45 = Rc*(1+ac*(t2-t1))
print("B) Widerstand bei 45 Gard=",R45,"Ohm")
#C)
i = 5
p1 = i**2*Rc
print("Wir haben eine verlustleistung von",p1,"W")
Run to view results
x = symbols("x")
e0 = 8.85*10**-12
A = 7200*10**-6
l = 10*10**-6
er = 1
#A)
e = er*e0
c = e*A/l
print("A) c =",c,"F")
#B)
c1 = 47*10**-9
A1 = 5600*10**-6
l1 = 300*10**-6
e1 = x*e0
er1 = solve((e1*A1/l1)-c1,x)
print("B) er=",e1)
#C)
uc = 5
Q = 110*10**-3
c2 = Q/uc
print("C) Kapazität=",c2,"F")
Run to view results
x = symbols("x")
c1 = 10*10**-6
c2 = 10*10**-6
c3 = 10*10**-6
c4 = 10*10**-6
c5 = 10*10**-6
c6 = 22*10**-6
c7 = 47*10**-6
#A)
c167 = 1/((1/c1)+(1/c6)+(1/c7))
ce = c167+c2+c3+c4+c5
print("Ersatzkapazität =",ce,"F")
#B)
ce1 = 4.7*10**-6
c167 = 1/((1/x)+(1/c6)+(1/c7))
Ce = solve((c167+c2+c3+c4+c5)-ce1,x)
print("C) c1=",ce,"F")
Run to view results
u0 = 5
r = 15*10**3
c = 100*10**-6
#A)
T = r*c
print("A) Zeitkonstante=",T,"sek.")
#B)
T1 = 1
T2 = 2
T3 = 3
T4 = 4
uc1 = u0*(1-exp(-1/T))
uc2 = u0*(1-exp(-2/T))
uc3 = u0*(1-exp(-3/T))
uc4 = u0*(1-exp(-4/T))
print(uc1,"V")
print(uc2,"V")
print(uc3,"V")
print(uc4,"V")
Run to view results
x = symbols("x")
u0 = 1.257*10**-6
lm = 62*10**-3
A = 75*10**-6
n1 = 360
ur = 1200
#A
u = u0*ur
L = u*n1**2*(A/lm)
print("A) induktivität",L,"H")
#B
L1 = 22*10**-3
lm1 = 31*10**-3
A1 = 18*10**-6
ur1 = 800
u1 = u0*ur1
n2 = solve((u1*x**2*(A1/lm1))-L1,x)
print(n2)
print("B) Windungsanzahl der 2. Spule = 194")
#C)
i = 1.5
fluss = solve(((n1*x)/i)-L,x)
print("C) Magnetischer fluss=",fluss,"Wb")
Run to view results
#B
u0 = 1.257*10**-6
l = 2
r = 0.5*10**-2
i1 = 1500
i2 = 1500
ur = 1
f = (u0*i1*i2*l)/(2*np.pi*r)
print("B) Die Kraft beträgt",f,"N")
Run to view results
x = symbols("x")
fc = 350
r = 470
u1 = 12
#A)
w = 2*np.pi*fc
c1 = solve((1/(2*np.pi*r*x))-fc,x)
print("A) C1=",c1,"F")
c1 = 9.67507252838269e-7
#B
f = 500
w1 = 2*np.pi*f
xc = 1/(w1*c1)
print("B) Blindwiderstand Xc=",xc,"Ohm")
#C
w2 = 2*np.pi*f
u2 = 1/sqrt(1+(w2*r*c1)**2)
print("C) Ausgangsspannung=",u2,"V")
Run to view results
x = symbols("x")
n1 = 1150
u1 = 230
u2 = 12
ü = u1/u2
print("A) ü=",ü,"V")
n2 = solve((u1/u2)-(n1/x),x)
print("B) Windungsanzahl N2=",n2)
n2 = 60
U1 = 110
U2 = solve((n1/n2)-(U1/x),x)
print("C) U2=",U2,"V")
Run to view results
Run to view results