Calculator overview
Inputs and outputs
This summary comes from the calculator's published input and output contract.
Inputs
- Distance from the slits to the screen (required)
-
Unit mm Default 1000 Range 1 to 2000
About this input
L, the distance from the barrier to the screen, in mm, from 1 to 2000.
- Slit spacing (centre to centre) (required)
-
Unit um Default 100 Range 0.2 to 500
About this input
d, the centre-to-centre spacing of neighbouring slits, in micrometres, from 0.2 to 500 and at least the slit width with two or more slits; checked even for one slit.
- Slit width (required)
-
Unit um Default 20 Range 0.2 to 100
About this input
a, the width of each slit, in micrometres, from 0.2 to 100.
- Your prediction (challenge 1) (required)
-
Default Not yet predicted Allowed Not yet predicted, Wider, Narrower, Unchanged
About this input
Your prediction for challenge 1: Not yet predicted, Wider, Narrower or Unchanged. In challenge 1 the pattern appears once you predict.
- Your spacing estimate (challenge 4) (required)
-
Unit um Default 0 Range 0 to 500
About this input
Your estimate of the hidden slit spacing for challenge 4, in micrometres, from 0 to 500; 0 means not yet estimated.
- Wavelength of the light (required)
-
Unit nm Default 550 Range 380 to 750
About this input
lambda, the wavelength of the light, in nm, from 380 to 750 (the visible band).
- Challenge number (required)
-
Default 0 Range 0 to 5
About this input
0 for no challenge, or 1 to 5 to load a challenge.
- Picked point on the screen (required)
-
Unit mm Default 2.75 Range -500 to 500
About this input
The picked point on the screen, in mm, from -500 to 500; used clamped to the window.
- Number of slits (required)
-
Default 2 Range 1 to 6
About this input
N, a whole number from 1 to 6: the number of equal slits in the barrier.
- Half-width of the screen window (required)
-
Unit mm Default 40 Range 1 to 500
About this input
Y, the half-width of the screen window, in mm, from 1 to 500: the window shows y from -Y to Y.
Outputs
- Huygens intensity at the picked point
-
No unit declared
About this output
The Huygens intensity at the picked point, the squared length of the phasor chain (0 to 1). Blank while withheld.
- Far-field intensity at the picked point
-
No unit declared
About this output
The far-field intensity at the picked point (0 to 1). Blank while withheld.
- Turn of the phasor chain at the picked point
-
Unit deg
About this output
How far the phasor chain turns from its first arrow to its last, in degrees (negative above the centre). Blank while withheld or hidden.
- Principal orders that exist
-
No unit declared
About this output
The number of principal orders that exist, 2K + 1 (missing ones included). Blank for one slit and while hidden.
- Picked point on the screen used
-
Unit mm
About this output
The picked point used, in mm, clamped to the window.
- Angle of the picked point
-
Unit deg
About this output
The angle of the picked point seen from the slits, in degrees.
- Formula module versions
-
No unit declared
About this output
The formula modules embedded in the workbook and their versions.
- Model version
-
No unit declared
About this output
The workbook model version.
- Near-field map: 25 x 25 Huygens intensities on a fan from the slits to the screen (one row per screen direction, bottom first; one column per distance as a fraction of L)
-
No unit declared
About this output
The near-field map: one row per screen direction (25, bottom first) with its screen height ys (mm), and one Huygens intensity per distance x = 0.04 L to 1.00 L along that direction; the last column is the screen. Intensities blank while withheld.
- Phasor chain at the picked point: the running sum of the sub-source arrows, step 0 at the origin
-
No unit declared
About this output
The phasor chain at the picked point: one row per step (0 to 48) with the running sum's real and imaginary parts; blank beyond the 8N active sources, while withheld and while hidden.
- Principal orders on the screen
-
No unit declared
About this output
The number of principal orders that reach the screen window. Blank for one slit and while hidden.
- Slit width used
-
Unit um
About this output
The slit width used, in micrometres.
- Distance from the slits to the screen used
-
Unit mm
About this output
The screen distance used, in mm.
- Part of the error due to 8 sources per slit
-
No unit declared
About this output
The part due to representing each slit by 8 sources: the 8-source far field against the smooth-slit formula (0 to 1). Blank while withheld.
- Sub-sources per slit
-
No unit declared
About this output
The number of point sub-sources each slit is split into in the Huygens sum: 8, fixed.
- Largest phase step between sub-sources
-
Unit deg
About this output
The largest phase step between neighbouring sub-sources along the steepest ray, in degrees; above 135 the Huygens curve is unreliable (CHECK). Blank while hidden.
- Slit spacing (centre to centre) used
-
Unit um
About this output
The slit spacing used, in micrometres. Blank while challenge 4 hides it.
- Resolving power in the highest order
-
No unit declared
About this output
The resolving power in the highest order, N x K. Blank for one slit, when no order exists and while hidden.
- Smallest separable wavelength difference
-
Unit nm
About this output
The smallest wavelength difference the grating separates in its highest order, in nm: wavelength / (N x K). Blank as the resolving power.
- Half-width of the screen window used
-
Unit mm
About this output
The window half-width used, in mm.
- Slit layout: the lower and upper edge of each slit in use, micrometres from the centre
-
No unit declared
About this output
The slits: one row per slit (1 to 6) with its lower and upper edge in micrometres from the centre; blank for a slit not in use and while challenge 4 hides the spacing.
- Number of slits used
-
No unit declared
About this output
The number of slits used (a challenge's when it fixes one).
- Challenge score
-
No unit declared
About this output
100 when the selected challenge is met, else 0.
- Challenge: the value scored
-
No unit declared
About this output
The value the selected challenge scores: the central width (mm), the number of principal orders, the order-3 peak height, the guess's error in percent (shown once met) or the resolving power. Blank with no challenge, while withheld or hidden.
- Challenge result
-
No unit declared
About this output
No challenge selected, MET or NOT MET.
- Far-field distance
-
Unit mm
About this output
2 D^2 / wavelength, in mm: well beyond it the far-field formula holds. Blank while hidden.
- Screen profile: 241 samples across the window, the angle seen from the slits, the far-field intensity of smooth slits and the Huygens intensity of 8 sub-sources per slit
-
No unit declared
About this output
The screen profile: one row per sample (241, y from -Y to Y) with its y (mm), its angle (degrees), the far-field intensity of smooth slits and the Huygens intensity of 8 sub-sources per slit; the two intensities are blank while challenge 1 awaits a prediction.
- Challenge goal
-
No unit declared
About this output
The goal of the selected challenge; blank with no challenge.
- Half-angle of the central fringe
-
Unit deg
About this output
The angle of the first dark direction, in degrees: sin(angle) = wavelength / (N x spacing), or wavelength / slit width for one slit. Blank as the central width.
- Aperture width
-
Unit um
About this output
D, the whole aperture from the outer edge of the first slit to the outer edge of the last, in micrometres. Blank while hidden.
- Screen samples across the central fringe
-
No unit declared
About this output
The number of screen samples across the central fringe; below 4 the curve cannot show the pattern (CHECK). Blank as the central width.
- Challenge feedback
-
No unit declared
About this output
A prompt while challenge 1 awaits a prediction, else the met or not-met feedback of the selected challenge; blank with no challenge.
- Width of the central bright fringe
-
Unit mm
About this output
The width of the central bright fringe on the flat screen, in mm, between the two first dark fringes. Blank when no dark direction exists, while challenge 1 awaits a prediction and while challenge 4 hides the spacing.
- Display colour of the light: green
-
No unit declared
About this output
The green part of the light's display colour, 0 to 1.
- Display colour of the light: blue
-
No unit declared
About this output
The blue part of the light's display colour, 0 to 1.
- Display colour of the light: red
-
No unit declared
About this output
The red part of the light's display colour, 0 to 1 (a rendering rule, not physics).
- Model Status
-
No unit declared
About this output
OK, a CHECK warning (the Huygens curve unreliable at wide angles, or too few samples across the central fringe), or NOT VALID with the reason.
- Wavelength of the light used
-
Unit nm
About this output
The wavelength used, in nm.
- Highest order
-
No unit declared
About this output
K, the highest order: the largest whole number m with m x wavelength below the spacing. Blank for one slit and while hidden.
- Angle of the first order
-
Unit deg
About this output
The angle of the first grating order, in degrees. Blank for one slit, when no order exists and while challenge 4 hides the spacing.
- First missing order
-
No unit declared
About this output
The smallest order from 1 to 10 that falls on a dark fringe of the single-slit envelope (m x width / spacing a whole number). Blank when none, for one slit and while hidden.
- Largest far-field formula error on the screen
-
No unit declared
About this output
The largest difference between the far-field formula and the Huygens sum over the 241 screen samples (0 to 1). Blank while challenge 1 awaits a prediction.
- Grating orders 0 to 10: angle, screen position, peak height under the single-slit envelope and the missing flag
-
No unit declared
About this output
The grating orders 0 to 10: one row per order with its angle (degrees), its position on the flat screen (mm, also beyond the window), its peak height under the single-slit envelope and Missing where an envelope zero falls on it; blank for one slit, beyond the highest order and while hidden.
- Part of the error due to the screen distance
-
No unit declared
About this output
The part of that error due to the screen's finite distance: the Huygens sum against the exact far field of 8 sources per slit (0 to 1). Blank while withheld.
LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
This lab sends light of one wavelength through a barrier with 1 to 6 equal slits and onto a flat screen. For the slits, the light and the screen you set, the model computes the pattern on the screen in two ways: the textbook far-field formula for smooth slits, and a numerical Huygens sum in which each slit is split into 8 point sources and every path to the screen is measured exactly. It samples both across a window of the screen at 241 points, maps the Huygens intensity on a 25 × 25 fan between the slits and the screen, and draws the phasor chain at a point you pick. It lists the grating orders 0 to 10 with their angles, screen positions and peak heights under the single-slit envelope, and marks the orders that go missing. It reports the width of the central bright fringe, how many orders exist and how many reach the screen, the resolving power, the far-field distance of the aperture, how far the far-field formula is from the Huygens sum on this screen, and the light's display colour. Five scored challenges turn the lab into exercises.
Every step is a closed form or a fixed finite sum: there is no iteration and no solver. The far-field formula is written so that it never divides 0 by 0, and every phase is reduced to within one turn before its sine or cosine is taken.
It is a lab for learning single-slit and grating diffraction, not an optics design tool. The light is a monochromatic plane wave arriving square to a thin opaque barrier. The model is scalar wave optics with equal-strength point sources: no polarisation, no obliquity factor, no fall-off with distance and no slit-edge effects. Close to the slits the Huygens sum shows the trend of the near field, not a full diffraction-integral result.
The model is the calculation authority. The page sends the values you set to the model and draws only what the model returns: every intensity, map cell, chain point, order position, slit edge and colour comes from the model's results; the page computes no optics itself.
Inputs and units
| Input | Meaning and unit |
|---|---|
| Number of slits | N, a whole number from 1 to 6: the number of equal slits in the barrier. |
| Slit width | a, the width of each slit, from 0.2 to 100 μm. |
| Slit spacing | d, the centre-to-centre spacing of neighbouring slits, from 0.2 to 500 μm, and at least the slit width with two or more slits. It is checked even for one slit, where it is not used. |
| Wavelength | λ, the wavelength of the light, from 380 to 750 nm (the visible band). |
| Screen distance | L, the distance from the barrier to the screen, from 1 to 2,000 mm. |
| Window half-width | Y, the half-width of the screen window, from 1 to 500 mm: the window shows y from −Y to Y. |
| Picked point | The point on the screen whose phasor chain is drawn, from −500 to 500 mm. It is used clamped to the window. |
| Challenge number | 0 for free exploration; 1 to 5 loads one of the five challenges. |
| Your prediction (challenge 1) | Not yet predicted, Wider, Narrower or Unchanged. Only challenge 1 uses it. |
| Your spacing estimate (challenge 4) | Your estimate of the hidden slit spacing, from 0 to 500 μm; 0 means not yet estimated. Only challenge 4 scores it. |
Units: the slit width and spacing are in micrometres, the wavelength in nanometres, and the screen distance, the window and every screen position in millimetres, as in a real optics lab. Inside the model every length is converted to micrometres. Angles are in degrees. Every intensity is a fraction of the central peak of the far-field pattern, from 0 to 1.
Sign conventions: the barrier lies along the y axis at x = 0, with the slits centred on y = 0; the screen stands at x = L. Screen heights and angles are positive upward. Slit 1 is the lowest.
Every input can be set in the input panel. In a challenge, the inputs the challenge fixes cannot be changed.
Governing relationships
Values used. With no challenge selected, every value used is the value entered. In a challenge, the slit count, width and spacing, the wavelength, the screen distance and the window take the challenge's own values, except those the challenge leaves free. The picked point is then clamped to the window: the point used is the nearer of −Y and Y when the entered point lies outside it, so a point outside the window moves to its edge instead of failing.
The sources. The aperture is D = (N − 1)·d + a, the distance from the lowest slit edge to the highest (D = a for one slit). Slit n is centred at c_n = (n − (N + 1)/2)·d. Each slit is split into 8 equal parts, and a point source sits at the midpoint of each part, so there are 8N sources of equal strength, numbered from the bottom up, slit by slit.
The Huygens sum at a point. For a point at distance x beyond the barrier and height y, let r₀ be its distance from the slits' centre and r_j its distance from source j at height s_j. The path difference of source j is written as
Δ_j = (s_j² − 2·y·s_j) / (r_j + r₀)
which equals r_j − r₀ exactly but loses no digits on a distant screen. Its phase is 2π times the number of wavelengths Δ_j/λ, reduced to within half a turn of 0. With C and S the sums of the cosines and sines of these phases over the 8N sources,
I_H = (C² + S²) / (8N)²
so a point where every source arrives in step has intensity 1.
The far-field formula (smooth slits). In a direction whose sine is σ, the single-slit factor is sin β / β with β = π·a·σ/λ, and the grating factor is G = sin(Nα) / (N·sin α) with α = π·d·σ/λ. The far-field intensity is
I_F = (sin β / β)² · G²
which is 1 at the centre. Neither factor is formed by a division that can be 0/0:
- below |β| = 1×10⁻⁴ the single-slit factor is the series 1 − β²/6, so it is exactly 1 at β = 0; the two forms agree at the switch to rounding;
- the grating factor is written as a sum of N cosines divided by N (the Dirichlet kernel), which equals sin(Nα) / (N·sin α), including its value 1 at every principal maximum, without dividing by sin α. For one slit it is 1.
The far field of 8 sources per slit. Far from the slits, the Huygens sum tends to the pattern of 8N point sources, not of smooth slits. That pattern is the same grating factor times the 8-point kernel sin β / (8·sin(β/8)), also written as a sum of cosines. The model uses it only to split the far-field error in two (below).
The screen profile. Sample i (i = 1 to 241) sits at height y_i = Y·(i − 121)/120 on the screen, from −Y to Y. Its angle seen from the slits' centre is arctan(y_i/L), and its direction sine is y_i/√(L² + y_i²). The profile holds the far-field intensity in that direction and the Huygens intensity at that point of the screen.
The three errors. Over the 241 samples:
- the far-field error is the largest difference between the Huygens and the far-field intensity: how far the textbook formula is from the Huygens sum on this screen;
- the distance error is the largest difference between the Huygens intensity and the 8-source far field: the part due to the screen's finite distance, which tends to 0 far away;
- the sub-source error is the largest difference between the 8-source far field and the smooth-slit formula: the part due to representing each slit by 8 sources, which does not depend on the distance.
On a distant screen the far-field error is about the sub-source error, typically 0.003 to 0.006; close to the slits the distance error dominates.
The near-field map. Column j (j = 1 to 25) lies at distance x_j = L·j/25 from the barrier, and row r (r = 1 to 25, from the bottom) points in the direction of the screen height ys_r = Y·(r − 13)/12. Each cell is the Huygens intensity at distance x_j in that direction, at height x_j·ys_r/L. Every column therefore spans the same directions as the window, the last column is the screen itself (its rows are every 10th screen sample), and the map is a fan that widens from the slits to the screen. In the far field every column repeats the same angular pattern, the beams of the orders spreading from the slits; close to the slits the columns differ, and that is the near field.
The phasor chain. At the picked point the model adds the 8N source phasors one by one, each of length 1/(8N), from the lowest source to the highest. The chain's points are the running sums, from step 0 at the origin to step 8N; the steps beyond 8N, up to 48, are blank. The chain's end is the amplitude at that point, and the picked point's Huygens intensity is the square of its length. At the central peak every arrow points the same way, a straight chain of length 1; at a dark fringe the chain closes on itself. The phasor turn is how far the chain turns from its first arrow to its last, 360 times the difference in wavelengths travelled from the highest and the lowest active source; it is negative above the centre, where the upper sources are nearer.
Grating orders (two or more slits). Order m is bright where d·sin θ = m·λ.
- The highest order K is the largest whole m with m·λ < d. An order exactly at sin θ = 1 (d a whole multiple of λ) would graze along the screen; it is not counted.
- The number of principal orders is 2K + 1, orders −K to K, missing ones included.
- An order reaches the screen when its direction lies strictly inside the window's edge direction, Y/√(L² + Y²); the number on the screen is counted the same way.
- For each order m from 0 to 10 up to K: its angle arcsin(m·λ/d), its screen position L·tan θ (also when it lies beyond the window), and its peak height, the single-slit factor squared at that order, (sin(π·m·a/d) / (π·m·a/d))², which is the far-field intensity there because the grating factor is 1.
- An order m ≥ 1 is missing when m·a/d is a whole number: a dark fringe of the single slit falls on it.
- The first missing order is the smallest missing m from 1 to the smaller of 10 and K.
- The resolving power in the highest order is N·K, and the smallest wavelength difference it separates is λ/(N·K).
For one slit there are no orders, and every order result is blank.
The central fringe. Its edges are the first dark directions on either side of the centre, at sin θ = λ/a for one slit and λ/(N·d) for N slits (the grating's first zero comes before the envelope's, since d ≥ a). With s₁ that sine, the half-angle is arcsin s₁, and the width between the two dark fringes on the flat screen is
w = 2·L·s₁ / √(1 − s₁²)
which is 2L·tan θ, not the small-angle 2λL/a. The number of screen samples across it is 120·w/Y. When λ is at least the effective width (s₁ ≥ 1), no dark direction exists, the whole half-space is the central fringe, and the three are blank.
The far-field distance. 2D²/λ, in mm. Well beyond it the far-field formula holds; on a closer screen the Huygens curve departs from it, and the pattern is dimmer and smeared.
The sub-source phase step. Along the steepest ray, from one aperture edge to the opposite edge of the window, neighbouring sub-sources of a slit differ in phase by 360·a·sin θ / (8λ) degrees. Above 135 degrees, 8 points no longer stand in for a smooth slit: the 8-point kernel turns back toward its repeat at 360 degrees.
Display colour. The light's colour for the screen strip comes from a standard piecewise-linear approximation of spectral colours, dimmed toward both ends of the visible band and raised to the power 0.8. It is a rendering rule, not physics: 700 nm is the last undimmed red, and 400 nm is a dim violet.
The slit layout. For each slit in use, its lower and upper edge, c_n − a/2 and c_n + a/2, in micrometres from the centre. The barrier is drawn from these values, not from the inputs, so a challenge can hide the slits.
Calculation sequence
The model works through the relationships above in this order:
- It checks the entered inputs, items 1 to 5 of the status list under Errors and warnings.
- It fixes the values used: your inputs, or in a challenge the challenge's own values with only its free inputs left to you, and clamps the picked point to the window. It checks the spacing against the width (item 6). Under NOT VALID every result is blank.
- It places the 8N sources and the slit edges.
- It computes the 241 screen samples: position, angle, far-field and Huygens intensity, and the three errors.
- It computes the 25 × 25 near-field map.
- It builds the phasor chain at the picked point, with its intensities, angle and turn.
- It finds the grating orders, the missing orders, the resolving power and the order table.
- It computes the central fringe, the far-field distance, the sub-source phase step and the display colour.
- It sets the status and, in a challenge, scores the challenge.
Outputs and interpretation
- Status: OK, CHECK or NOT VALID, with the reason (see Validation and status logic and Errors and warnings).
- Central fringe: its width on the screen (mm) and, at Experiment and Advanced, its half-angle (degrees).
- Orders: the angle of order 1 (degrees), the number of principal orders and the first missing order; at Experiment and Advanced also the number of orders on the screen, the highest order, the resolving power and the smallest wavelength difference it separates (nm). All blank for one slit.
- Picked point: its Huygens intensity; at Experiment and Advanced also its far-field intensity, its angle (degrees) and the phasor turn (degrees).
- Colour: the light's red, green and blue display fractions, from 0 to 1.
- Challenge (Experiment and Advanced): the result, the score, the goal, the feedback and the measured value.
- Aperture and accuracy (Advanced): the aperture width (μm) and its far-field distance (mm); the far-field, distance and sub-source errors (fractions of the central peak); the sub-source phase step (degrees); the number of screen samples across the central fringe; and the sub-sources per slit, always 8.
- Values used (Advanced): the slit count, width and spacing, the wavelength, the screen distance, the window half-width and the picked point actually used. In a challenge these are the challenge's own.
- Versions (Advanced): the model version and the formula module versions.
- Grids:
- Screen profile: 241 rows of screen position (mm), angle (degrees), far-field intensity and Huygens intensity.
- Near-field map (Experiment and Advanced): 25 rows, bottom first, of the screen height of the row's direction (mm) and the Huygens intensity at the 25 distances x = 0.04 L to 1.00 L.
- Phasor chain: 49 rows, steps 0 to 48, of the running sum's real and imaginary parts; blank beyond the 8N active sources.
- Grating orders: 11 rows, orders 0 to 10, of the angle (degrees), the screen position (mm), the peak height and Missing or blank; blank beyond the highest order and for one slit.
- Slit layout: 6 rows, one per slit, of the lower and upper edge (μm); blank for a slit not in use.
Reading the results:
- Every angle scales with the wavelength: red light diffracts more than green or violet, so a grating spreads the colours apart.
- A narrower slit gives a wider central fringe. More slits at the same spacing sharpen the peaks without moving them, and put N − 2 weak peaks between neighbouring orders.
- The order positions, heights and counts are closed forms, not read off the sampled curve. The curve is a picture at 241 samples; a peak between two samples is not searched.
- The far-field error is the honest gap between the two curves on this screen. On a screen closer than the far-field distance it grows large, and the distance error says how much of it is due to the distance.
- The sub-source error remains even far away: 8 sources per slit lose about 0.3 to 0.6% of the peak intensity across the central lobe.
Challenges
Choose a challenge number from 1 to 5. The model loads that challenge's slits and light, and the inputs it fixes replace yours (the "used" outputs show the values in effect). The picked point is free in every challenge. The challenge result reads MET or NOT MET, the score is 100 when met and 0 otherwise, and a goal and a feedback line say what is asked and what to try next. The status checks still apply inside a challenge, and a CHECK does not affect the score.
- Narrow the slit. The single slit has been narrowed from 20 to 10 μm. Predict whether the central bright fringe gets wider, narrower or stays the same. Until you choose, the central fringe results, the three errors, the samples across the fringe, the picked point's intensities and turn, both intensity columns of the screen profile, the map values and the chain stay blank; the angles and the slits still show. The challenge is met when your prediction matches the change in the central fringe's width, measured against the width the 20 μm slit gives.
- Seven orders. Choose the slit spacing so that exactly 7 principal orders exist, orders −3 to 3.
- Missing order. Choose the slit width so that order 3 disappears: its peak at most 0.01 of the central peak. Order 3 must exist.
- Hidden spacing. The slit spacing is hidden. From the angle of a bright peak on the screen, estimate it to within 5%. Until you are within 5%, the slit layout, the order table, the chain, the central fringe and every output derived from the spacing stay blank; the screen profile and the map still show, because reading a peak's angle off the curve is the point of the exercise.
- Fewest slits. The light holds two lines, 520 nm and 680 nm. Using the first order only, choose the fewest slits that can separate them: the resolving power must reach the mean wavelength over the difference, 600/160 = 3.75, and one slit fewer must not.
Validation and status logic
The status reads the first message in the list under Errors and warnings that applies. Items 1 to 5 check the values
you entered; items 6 to 8 check the values used, which are a challenge's own when one is selected. OK means the
inputs are valid, 8 sources per slit stand in for smooth slits everywhere on the window, and the window shows the
central fringe with enough samples. A CHECK still returns every result; it marks a curve that deserves a second look.
Slits that touch (spacing equal to the width) are allowed: they form one slit N·a wide.
Assumptions and limitations
- Scalar wave optics: monochromatic plane-wave light at normal incidence on a thin opaque barrier with N equal slits. Each slit is 8 equal-strength point sources; there is no obliquity factor, no fall-off with distance, no polarisation and no slit-edge effect. The far-field formula is the far-field pattern of smooth slits.
- Close to the slits, within about the far-field distance, the Huygens sum shows the trend of the near field, not a full diffraction-integral result.
- 8 sources per slit cost about 0.3 to 0.6% of the peak intensity even far away (the sub-source error). Above a 135-degree phase step between neighbouring sources, the Huygens curve and the map are unreliable (a CHECK).
- 241 screen samples and a 25 × 25 map of point values. Samples are equally spaced on the flat screen, so on a close screen with a wide window the outer samples crowd toward grazing angles. No result depends on a sampled maximum.
- The order table lists orders 0 to 10; the counts cover every order. A grazing order (exactly at 90 degrees) and an order exactly at the window's edge are not counted.
- The display colour is an approximation for drawing, not a colour measurement.
- A value within about 1×10⁻⁹ (relative) of a threshold may fall either side of it. This applies to the spacing test, the order existence and on-screen tests, the missing-order test, the dark-direction test, the two CHECK tests and each challenge band.
Restrictions and non-computing states
Every input is required; a blank or out-of-range value reads NOT VALID. The prediction must be exactly one of its listed choices.
Under NOT VALID every result and every grid entry is blank, label columns included. The model and module versions still show, the challenge score reads 0, and a selected challenge reads NOT MET with its goal and its not-met text. A challenge number that is not a whole number from 0 to 5 counts as no challenge selected.
Errors and warnings
The status messages, in the order they are checked:
NOT VALID: the number of slits must be a whole number from 1 to 6NOT VALID: the slit width must be from 0.2 to 100 micrometres and the slit spacing from 0.2 to 500 micrometresNOT VALID: the wavelength must be from 380 to 750 nmNOT VALID: the screen must stand from 1 to 2000 mm from the slits, the window half-width must be from 1 to 500 mm, and the picked point from -500 to 500 mmNOT VALID: the challenge number must be a whole number from 0 to 5, the prediction one of the listed choices, and the spacing guess from 0 to 500 micrometresNOT VALID: with two or more slits, the slit spacing must be at least the slit width: two or more slits whose spacing is below the width; spacing equal to the width is allowed.CHECK: the screen reaches angles where 8 sub-sources per slit no longer stand in for a smooth slit (neighbouring sub-sources differ by more than 135 degrees of phase); the Huygens curve and the near-field map are unreliable there: the sub-source phase step is above 135 degrees.CHECK: the central fringe spans fewer than 4 screen samples, so the curve cannot show the fringe pattern; narrow the window or move the screen farther away: the central fringe exists and spans fewer than 4 samples.OK
References
This laboratory is an educational model of monochromatic light passing through one to six equal slits, in scalar wave optics. The far-field pattern is the single-slit envelope (sin β / β)² times the grating factor of N slits, whose bright orders satisfy the grating equation d sin θ = mλ and go missing where a single-slit minimum falls on them. The resolving power of a grating in order m is mN. The pattern at a finite distance is found by Huygens' principle, as a sum of phasors from point sources across each slit with exact path lengths, and the chain of those phasors shows how the amplitude at a point builds up.
Sources and further reading
- Single-slit minima and intensity, double-slit diffraction with missing orders, and the grating equation: S. J. Ling, J. Sanny and W. Moebs, University Physics Volume 3, OpenStax, 2016, chapter 4, Diffraction:
- The resultant of N equal oscillators as a sum of phasors, the diffraction grating and its resolving power: R. P. Feynman, R. B. Leighton and M. Sands, The Feynman Lectures on Physics, volume I, Addison-Wesley, 1963, chapter 30, Diffraction. Caltech
- Fraunhofer and Fresnel diffraction, gratings and their resolving power: E. Hecht, Optics, 5th edition, Pearson, 2017, chapter 10, Diffraction.
- Huygens' principle and the diffraction theory of light: M. Born and E. Wolf, Principles of Optics, 7th edition, Cambridge University Press, 1999, chapter 8, Elements of the theory of diffraction.
- The principle as first stated: C. Huygens, Traité de la lumière, Pieter van der Aa, Leiden, 1690.
No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.
This laboratory is for learning. Its results hold only within its stated ranges; it is not a tool for designing or checking optical instruments.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.