Librería para el curso Física con Apoyo Computacional de la Facultad de Ingeniería (UdelaR)
Project description
fing_fac
Librería desarrollada para el curso Física con Apoyo Computacional (FAC) de la Facultad de Ingeniería (Universidad de la República), por Mateo Dutra.
Descripción
Esta librería permite visualizar de forma interactiva el movimiento de un objeto a partir de listas de tiempo, posición, velocidad y aceleración.
Incluye simulaciones que combinan:
- representación gráfica (x(t), v(t), a(t))
- animación del movimiento en pantalla
Funciones disponibles
simular_pos(t, x)simular_vel_y_pos(t, v, x)simular_a_vel_y_pos(t, a, v, x)
Cada función recibe listas con los valores correspondientes y genera una simulación del movimiento.
Ejemplo de uso
from fing_fac import simular_a_vel_y_pos
t_i = 0 # Tiempo inicial
t_f = 10 # Tiempo final
dt = 0.15 # Paso de tiempo
x_i = -90 # Posición inicial
v_i = 40 # Velocidad inicial
a_i = -8 # Aceleración
t = [t_i] # Lista de tiempos
v = [v_i] # Lista de velocidades
x = [x_i] # Lista de posiciones
a = [a_i] # Lista de aceleraciones
while t[-1] < t_f:
t.append(t[-1] + dt)
a.append(a[-1])
v.append(v[-1] + a[-1]*dt)
x.append(x[-1] + v[-2]*dt)
simular_a_vel_y_pos(t, a, v, x)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fing_fac-1.0.3.tar.gz.
File metadata
- Download URL: fing_fac-1.0.3.tar.gz
- Upload date:
- Size: 378.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6231a30277dfe14ea4add1edea6a36cdf763cd78e2c481c7eafea9443c8b587
|
|
| MD5 |
cbfc55b25593c3403c1687d9ec0ece63
|
|
| BLAKE2b-256 |
cd5352f3bc3ffed32028d58bdfe5b74d73d3bbfb2b77fe77f1c0e9575596c0e7
|
File details
Details for the file fing_fac-1.0.3-py3-none-any.whl.
File metadata
- Download URL: fing_fac-1.0.3-py3-none-any.whl
- Upload date:
- Size: 376.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b3d3f0e6a08f9eb971a09278730d607b405c8c439b14438ab01a38e7e839b81
|
|
| MD5 |
ae7928a5bad092504e7a9784b7ce734f
|
|
| BLAKE2b-256 |
061424691926bc90dcfddd8188d3b10af0cb1cee08116627ada1d831f9f10fbd
|