Skip to content

itzshubhamdev/doubleSlit

Repository files navigation

Double Slit Experiment Simulator

An interactive web to demonstrate wave nature of light using Double Slit Experiment.

1. Constructive and Destructive Interference

The bright and dark fringes can be calculated using:

  • Constructive Interference (Bright Fringes): $$y_n = \frac{n\lambda D}{d}$$
  • Destructive Interference (Dark Fringes): $$y_n = \frac{(n + \frac{1}{2})\lambda D}{d}$$

2. Intensity Distribution

The intensity I at any point on screen is given by: $$I = I_0\cos^2(\frac{\phi}{2})$$

Tech Stack

  • Framework: React + Vite
  • Styling: Tailwind CSS
  • Graphics Library: p5.Js

Installation

git clone https://github.com/itzshubhamdev/doubleSlit
cd doubleSlit
npm install
npm run dev

About

An interactive web to demonstrate wave nature of light using Double Slit Experiment.

Resources

Stars

Watchers

Forks

Contributors