Skip to content

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

Notifications You must be signed in to change notification settings

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 = n λ D d
  • Destructive Interference (Dark Fringes): y n = ( n + 1 2 ) λ D d

2. Intensity Distribution

The intensity I at any point on screen is given by: I = I 0 cos 2 ( ϕ 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 devev

About

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

Resources

Stars

Watchers

Forks