CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 10:28:26 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=3b3777eb50c1c61508b9ca9d427a1a4e1191a34f1945331e0b711210d9b90333a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%22Y_pQdGlYIu0iTONpvdeXekevyq1jJLkh%22%3B%7D; HttpOnly; Path=/
cf-ray: 98de266f2a5a755c-BLR
% Constantesm = 2.6; % Massa em gL = 1.0; % Comprimento em mr = 0.003; % - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % Constantes
- m = 2.6; % Massa em g
- L = 1.0; % Comprimento em m
- r = 0.003; % Raio em m
- g = 9.81; % Aceleração da gravidade em m/s^2
- rho = 1.2; % Massa específica do ar em kg/m^3
- cd = 0.1; % Coeficiente de arrasto
- A = pi * r^2; % Área transversal da esfera
- % Calcula o coeficiente de arrasto aerodinâmico
- b = 1/2 * rho * 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
- % Listas para armazenar os resultados
- t = t0;
- theta = theta0;
- w = w0;
- k1x = 0;
- k1v = 0;
- k2x = 0;
- k2v = 0;
- % Loop de tempo
- while t(end) < 100.0
- % Cálculo dos valores intermediários
- k1x = w(end);
- k1v = -sign(w(end)) * (((b*L)/m) * w(end)^2) - (g / L) * theta(end);
- k2x = w(end) + k1v * h;
- k2v = -sign(w(end) + k1v h) * (((b*L)/m ) (w(end) + k1v *h)^2) - (g / L) * (theta(end)+k1x(end)*h);
- % Atualização dos valores de θ e w
- theta = [theta, theta(end) + ((k1x + k2x) / 2.0)*h];
- w = [w, w(end) + ((k1v + k2v) / 2.0)*h];
- % Atualização do tempo
- t = [t, t(end) + h];
- end
- % Cria o gráfico para θ com a linha vermelha
- plot(t, theta, 'r');
- % Adiciona uma linha para w com a linha azul
- hold on;
- plot(t, w, 'b');
- % Adiciona uma legenda
- legend('Theta', 'w');
- % Adiciona títulos aos eixos
- xlabel('tempo (s)');
- ylabel('Theta (rad), w (rad/s)');
- % Exibe o gráfico
- hold off;
Advertisement
Add Comment
Please, Sign In to add comment
-
✅ Make $2500 in 20 minutes⭐ X
JavaScript | 3 sec ago | 0.25 KB
-
💵 Make 3000$ in 20 minutes 💵
JavaScript | 4 sec ago | 0.24 KB
-
📌 Swapzone +37% glitch ⭐ 5
JavaScript | 11 sec ago | 0.25 KB
-
💎 ChangeNOW Exploit
JavaScript | 13 sec ago | 0.24 KB
-
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 15 sec ago | 0.15 KB
-
✅⭐ Make huge profits on trading ⭐⭐ T
JavaScript | 19 sec ago | 0.25 KB
-
🚀 Swapzone +37% glitch
JavaScript | 22 sec ago | 0.24 KB
-
⭐⭐⭐Crypto Accounts⭐⭐
Java | 25 sec ago | 0.15 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