Skip to content

simonmrog/physics-codes

Repository files navigation

Some codes and physics simulations

Projectile.java: Calculations of some quantities in the projectile motion (without air resistance).

circular_motion.cpp: Circular motion calculation of x(t), y(t), vx(t), vy(t) and some plots.

simple_pendulum.cpp: Simple pendulum calculation of x(t), y(t), vx(t), vy(t), theta(t), w(t) and some plots.

projectile_motion_no_air.cpp: Projectile motion calculation of x(t), y(t), vx(t), vy(t) without air resistance and some plots.

projectile_motion_with_drag.cpp: Projectile motion calculation of x(t), y(t), vx(t), vy(t) considering a drag force of the form F = mkv and plot taking different values of k.

anisotropic_harmonic_oscillator.cpp: Calculation of x(t), y(t), vx(t), vy(t) of an anisotropic harmonic oscillator with frequencies wx and wy, Plotting cases wx = wy (circle), wx != wy (lissajous curve).

projectile_motion.ipynb: Calculation and plotting of y(x) for a projectile without air resistance and taking several launch angles values.

block_tension.ipynb: : Block suspended by two strings making angles with the horizontal. Equations of motion are solved and the goal is to see how tension changes in terms of its angle.

About

Some codes and simulations of problems in physics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published