Phil Lucht Math & Physics Archive
Home / Math and Physics Files / Physics / Optics-Diffraction

onaxis

PDF · 2 pages · 70.9 KB
Open PDF file

A two-page Maple V Release 5 worksheet (onaxis.mws) that was exported to HTML and is shown here as a PDF. It sets up the path lengths r01, r12 and their sum for an on-axis diffraction geometry, solves for rho and simplifies the result, with brief comments between the Maple commands.

AI-written summary; may contain errors.

Extracted text (machine-read; may contain errors)
> restart; // create expressions for r01, r12 and rt r01 := (z1^2+rho^2)^.5; > r12 := (z^2+rho^2)^.5; > rt := r01+r12; // create an equation by setting rt to a specific value rt1 eqn := rt1 = rt; // There are two solutions as shown, note that you must put square brackets around the solve call, otherwise solutions like sol[1] not accessible sols := [solve(eqn,rho)]; // Now install this solution for rho back into r01, so we then get r01(z,z1,rt) r01_1 :=normal(eval(r01,rho=sols[1])); > joe := simplify(rtl*r01_1/.5,power); > bob := d*(f/d^2)^.5; > simplify(%); > normal(%); > factor(%); > combine(%); > assume(d>0); >