Skip to main content

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

fing_fac-1.0.2.tar.gz (378.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fing_fac-1.0.2-py3-none-any.whl (376.3 kB view details)

Uploaded Python 3

File details

Details for the file fing_fac-1.0.2.tar.gz.

File metadata

  • Download URL: fing_fac-1.0.2.tar.gz
  • Upload date:
  • Size: 378.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for fing_fac-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7509fe899173c39d7f7dbf631f53653c05dd298240073b40ce41c05fbaff5bb1
MD5 74ca0c245f887d29c7508d7b3e0c7a90
BLAKE2b-256 ab1f38ee4462ea055548efaab06902cdf30bc0fc20994525669eba3576155449

See more details on using hashes here.

File details

Details for the file fing_fac-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: fing_fac-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 376.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for fing_fac-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b36bf87988179d9b94d7be72d841c79399f2cf80a27a00345cd99e7070cd4d6a
MD5 261e9ceaef8665225823bf6f78dafaac
BLAKE2b-256 0fff91f696780f4606c7aa2f33e6f15c689a852fe4dafb13e672d7f1de844899

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page