Skip to content

Instantly share code, notes, and snippets.

View darylkusdinar's full-sized avatar

darylkusdinar

View GitHub Profile
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
# Parameters
num_particles = 300 # Number of particles
box_size = 50 # Box boundary (half-length in each direction)
max_velocity = 1 # Maximum initial velocity
radius = 0.5 # Radius of each particle
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darylkusdinar
darylkusdinar / yugas03.ipynb
Created October 3, 2024 02:12
hello_world.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darylkusdinar
darylkusdinar / tugas03array.ipynb
Created October 3, 2024 02:11
numpy_array.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.