Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

ARQUIVOS FÍSICA EXPERIMENTAL IFC LUZERNA PROF JOÃO MARCELLO

1005 views
License: MIT
ubuntu2004
Kernel: Julia 1.7

3 CAMPO MAGNÉTICO SOLENÓIDE

Este arquivo deve ser utilizado para calcular a propagação das incertezas no cálculo do campo magnético. Os valores medidos devem ser digitados com ponto não com vírgula.

LEIA TODO O ROTEIRO DA PRÁTICA EXPERIMENTAL E A TEORIA SOBRE CAMPO MAGNÉTICO PRODUZIDO PELO SONELÓIDE ANTES DE INICIAR O EXPERIMENTO, POIS ALGUNS PASSOS PODEM SER DECISIVOS NA COLETA DE DADOS E LER ANTES O ROTEIRO REDUZ O RETRABALHO DO EXPERIMENTO.

Consulte o guia introdutório "Elementos Python Julia Fisica experimental" em https://bit.ly/fisica-experimental . Para aprender mais sobre Python ou Julia use: https://bit.ly/tutorial-basico-python-julia-fisica

# para instalar o pacote Measurements # só funcionará no sagemath off-line # execute com shift + enter :_ using Pkg Pkg.add("Measurements") Pkg.add("DataFrames") Pkg.add("CSV") Pkg.add("Plots") Pkg.add("StatsBase")
# importar o pacote # execute com shift + enter using Measurements, DataFrames, Plots, StatsBase, Statistics gr()
Plots.GRBackend()

1. Dados Iniciais

# RAIO R =
# μ μ =
# COMPRIMENTO L L =
# NÚMERO DE ESPIRAS N N =
# CORRENTE i i =
# TENSÃO V V =

2. Análise de dados

# importação dos dados do campo magnético # o arquivo deve estar na mesma pasta do arquivo Jupyter # dados campo magnético campo_mag = DataFrame(CSV.File("dados-camp-mag.csv")) campo_mag
# histograma # Não altere os dados, apenas execute com shift + enter histogram(campo_mag.magZ, xlabel = "campo magnético solenóide", ylabel = "freq")
n = length(campo_mag.magZ) n
# Não altere os dados, apenas execute com shift + enter # média aritmética B_med = mean(campo_mag.magZ) # desvio padrão σ = std(campo_mag.magZ) # desvio médio σ_med = σ / sqrt(n) # t (use a tabela t-student) t = # incerteza Δg ΔB = t*σ_med
# CAMPO MANÉTICO EXPERIMENATL # Não altere os dados, apenas execute com shift + enter B_exp = measurement(B_med, ΔB) B_exp
# CÁLCULO DO CAMPO MANÉTICO TEÓTICO B_teo = (μ*i*N)/L

Fim