python
Dashboard
My Repos
Compilers
Python Online
Node JS Online
Golang Online
codepy
Login
My Repos
Sign Out
Online Python Interpreter
Stop
Run
import math import numpy as np # mi0 = 4*math.pi*1e-7 # qe = 1.60217662e-19 # me = 9.1e-22 milli = 10**3 micro = 10**6 nano = 10**9 pico = 10**12 kilo = 10**-3 mega = 10**-6 giga = 10**-9 tera = 10**-12 mi0 = 1.26e-6 pi = 3.14 qe = 1.6e-19 #### Q1 print('QUESTÃO 1') print('letra a') m = 8.9e-3 theta = 58.5 * math.pi / 180 a = 2e-3 g = 9.81 q0 = 14.8e-6 E = ((a + g*math.sin(theta))*m)/q0 print(E, 'unidade') print('letra b') epsilon0 = 8.85e-12 sigma = 2*E*epsilon0 print(sigma*nano, 'nano unidades') print('letra c') m = 8.9e-3 q0 = 14.8e-6 v = 16.2e-3 ddp = -m*v**2/(2*q0) print(ddp, 'V') print('QUESTÃO 2') R1 = 15 R2 = 10 R3 = 5 C1 = 36e-6 C2 = 9e-6 E = 27 #Questão 4 print('letra a') print("i0 " + str(E/R3)) print("inf " + str(E/((R1*R1)/(R1+R1)+R2+R3))) print("letra a: "+str(E/R3 - E/((R1*R1)/(R1+R1)+R2+R3))+ " A") #Questão 5 print('letra b') REQ = (R1*R1)/(R1+R1) V1 = (E*REQ/(REQ+R2+R3)) U1 = C1*((V1)**2)/2 V2 = (E*R2/(REQ+R2+R3)) U2 = C2*((V2)**2) print("letra b: "+str((U1+U2)*milli)+" mJ") # print("RESPOSTA Q5: "+str(U1+U2)+" J") print('QUESTÃO 3') print('letra a') U0 = 0.36 tau = 0.48 W = U0*(1/(math.cos(math.atan(tau/U0))) - 1) print(W*milli, 'mJ') print('letra b') U0 = 0.36 tau = 0.48 B = 0.2 A = 0.5 i = tau/(A*B*math.sin(math.atan(tau/U0))) print(i, 'A') print('QUESTÃO 4') print("letra a") mi0 = 1.26e-6 i = 9.2 a = 1.8e-2 b = 7.8e-2 B = (mi0*i)/(2*pi*(a + b/2)) print(B*micro, '𝜇𝑇') print("letra b") mi0 = 1.26e-6 i = 9.2 a = 1.8e-2 b = 7.8e-2 c = 48e-2 pi = 3.14 N = 170 M = N*(mi0)/(2*pi)*c*math.log((b+a)/a) print(M*micro, 'uH')
Share this code with others
Public
Clear
My Repos
Repo
Lang
Login
Register
Login
Create a free account. No Credit card info required.
I agree with the Codepy
Term of Service
Sign Up