CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 17:38:10 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=9785903e2b635b08938745a37e308e6870943177a2c21c182dc1c83161f978faa%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22Jb4y0pIE_TqCaVBS-ql9WEwWXZfL4Gsw%22%3B%7D; HttpOnly; Path=/
cf-ray: 98d0212bfd25755c-BLR
close all clc% Constantesm = 2.6*0.001; % Massa convertida de gramas a - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- close all
- clc
- % Constantes
- m = 2.6*0.001; % Massa convertida de gramas a Kg
- L = 1.0; % Comprimento do fio em metros
- R = 30*0.01; % Raio 30 cm convertido para metros
- p = 1.28 % densidade do ar em kg/m^3
- g = 9.81; % Aceleração da gravidade em m/s^2
- A = pi * R^2;
- % Calcula o coeficiente de arrasto aerodinâmico
- b = 1/2 * p * cd *A;
- % Valores iniciais
- theta0 = 0.05; % Ângulo inicial em rad
- w0 = 0.0; % Velocidade angular inicial em rad/s
- t0 = 0.0; % Tempo inicial em s
- h = 0.1; % Passo de tempo em s
- % Vetores para armazenar os resultados
- t = t0;
- theta = theta0;
- w = w0;
- % Loop de tempo
- while (t0 < 100.0)
- % Cálculo dos valores intermediários
- k1x = w0;
- k1v = (-sign(w0) * (b*L)/m * (w0)^2 - (g / L) * theta0);
- k2x = w0 + k1v*h;
- k2v = -sign(w0 + k1v*h) * (((b*L)/m) * (w0 + k1v*h)**2) - (g/L) * (theta0 + k1x*h);
- % Atualização dos valores de θ e w
- theta0 = theta0 + ((k1x + k2x) / 2.0)*h;
- w0 = w0 + ((k1v + k2v) / 2.0)*h;
- % Atualização do tempo
- t0 = t0 + h;
- % Adiciona os resultados aos vetores
- t = [t t0];
- theta = [theta theta0];
- w = [w w0];
- end
- % Cria o gráfico com plot
- plot(t, theta, 'r', t, w, 'b')
- % Adiciona legendas
- legend('Theta', 'w')
- % Adiciona títulos aos eixos
- xlabel('tempo (s)');
- ylabel('Theta (rad), w (rad/s)');
- % mostra o gráfico
- hold off;
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ W
JavaScript | 4 sec ago | 0.24 KB
-
Free Crypto Method (NEVER SEEN BEFORE)⭐⭐ 9
JavaScript | 12 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ V
JavaScript | 15 sec ago | 0.24 KB
-
⭐✅ Trading Profit Method ✅ NEVER SEEN BEFORE...
JavaScript | 21 sec ago | 0.24 KB
-
⭐✅ Swapzone Glitch ✅ Working⭐⭐⭐ X
JavaScript | 23 sec ago | 0.24 KB
-
⭐⭐Exchange Exploit⭐⭐ Y
JavaScript | 27 sec ago | 0.24 KB
-
⭐ Instant BTC Profit Method ✅ NEVER SEEN BEFO...
JavaScript | 31 sec ago | 0.24 KB
-
✅ Make $2500 in 20 minutes⭐⭐⭐ 3
JavaScript | 33 sec ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand