Showing posts with label optics. Show all posts
Showing posts with label optics. Show all posts

Sunday, March 5, 2023

Radio Shack EC-4000 (equiv. of TI-57): Program Library

Radio Shack EC-4000 (equiv. of TI-57):   Program Library





Radio Shack EC-4000/TI-57:  Horner's Method


Let's start with a demonstration of Horner's Method, which allows a quick evaluation of polynomials.   For a quadratic polynomial:


p(x) = a * x^2 + b * x + c = x * (a * x + b) + c



The program demonstrates an example polynomial:


p(x) = 3 * x^2 - 4 * x + 9 = x * (3 * x -  4) + 9



Step:  Key Code [ Key ]

00: 32, 1 [ STO 1 ]

01:  55 [ × ]

02:  03  [ 3 ]

03:  65  [ - ]

04:  04 [ 4 ]

05:  85  [ = ]

06:  55 [ × ]

07:  33, 1 [ RCL 1 ]

08:  75  [ + ]

09:  09  [ 9 ]

10:  85 [ = ]

11:  81  [ R/S ]

12:  71  [ RST ]


Examples:

p(0) = 9

p(5) = 64

p(9) = 216


Horner's Method can apply to higher order polynomials.  




Radio Shack EC-4000/TI-57:  Permutation and Factorial



This is to add two of the common probability functions that are missing with on the calculator.  


nPr = n! / (n - r)!


If n = r, then nPn = n!


Store n in R0 (register 0), r in R1 (register 1), then run the program (RST, R/S).


Other registers used:  R2:  nPr,  R7:  n-r+1 


Note that R7 is also the t-register.  


Step:  Key Code [ Key ]

00:  01  [ 1 ]

01:  32, 2  [ STO 2 ]

02:  33, 0  [ RCL 0 ]

03:  65   [ - ]

04:  33, 1  [ RCL 1 ]

05:  75  [ + ]

06:  01  [ 1 ]

07:  85  [ = ]

08:  32, 7 [ STO 7 ]

09:  86, 5 [ LBL 5 ]

10:  33, 0 [ RCL 0 ]

11:  39, 2  [ Prd 2 ]

12:  01  [ 1 ]

13:  -34, 0 [ INV SUM 0 ]

14:  33, 0 [ RCL 0 ]

15:  76  [ x≥t ]

16:  51, 5 [ GTO 5 ]

17:  33, 2 [ RCL 2 ]

18:  81  [ R/S ]

19:  71  [ RST ]



Examples:

n = 6, r = 6:  6P6 = 6! = 720

n = 5, r = 3:  5P3 = 60

n = 11, r = 6:  11P6 = 332,640

n = 52, r = 5:  52P5 = 3.118752 * 10^8



Radio Shack EC-4000/TI-57:  Snell's Law


There are two subroutines in this program listing.  Subroutines accessed by the [ SBR ] key.  


Snell's Law describes, among other things, the relationship between index of refraction of a medium (n) and refraction angle of the direction of light (Θ) is stated by:


n1 * sin(Θ1) = n2 * sin(Θ2)



Subroutine 1:  Solve for n2.  n2 = (n1 * sin(Θ1)) / sin(Θ2)


Subroutine 2:  Solve for Θ2.  Θ2 = arcsin( n1 * sin(Θ1) / n2 )


The registers used are:  R1 = n1, R2 = n2,  R3 = Θ1, R4 = Θ2


Step:  Key Code [ Key ]


// Solve for n2

00:  86, 1  [ LBL 1 ]

01:  50  [ DEG ]

02:  33, 1 [ RCL 1 ]

03:  55  [ × ]

04:  33, 3  [ RCL 3 ]

05:  28  [ SIN ]

06:  45  [ ÷ ]

07:  33, 4 [ RCL 4 ]

08:  28  [ SIN ]

09:  85  [ = ]

10:  32, 2 [ STO 2 ]

11:  81  [ R/S ]


// Solve for Θ2

12:  86, 2  [ LBL 2 ]

13:  50  [ DEG ]

14:  33, 1 [ RCL 1 ]

15:  55  [ × ]

16:  33, 3 [ RCL 3 ]

17:  28  [ SIN ]

18:  45  [ ÷ ]

19:  33, 2 [ RCL 2 ]

20:  85 [ = ]

21:  -28  [ INV SIN ]

22:  32, 4 [ STO 4 ]

23:  81 [ R/S ]


Examples:


Solve for n2:  n1 = 1.000293 (air), Θ1 = 30°, Θ2 = 19°

1.000293 STO 1

30 STO 3

19 STO 4

GSB 1

Result:  n2:  1.5362267


Solve for Θ2:  n1 = 1.000293 (air), Θ1 = 30°, n2 = 1.333 (water)

1.000293 STO 1

30 STO 3

1.333 STO 2

GSB 2

Result:  Θ2:  22.036902



Radio Shack EC-4000/TI-57:  Pseudorandom Number Generation


This program attempts to generate random numbers using the generator:


x_n+1 = frac(997 * x_n + π)


The random numbers are between 0 and 1.  An initial seed will be required 


The calculator does not have fraction and integer parts, so they have to be simulated:


int(x) ≈ x + 1E10 - 1E10

frac(x) = x - int(x), will require a register 


See steps 10 to 23.  


Due to the internal 10 digits and the simulations, expect possible roundoff errors as random numbers are continuously generated.  


Step:  Key Code [ Key ]

00:  55 [ × ]

01:  09  [ 9 ]

02:  09  [ 9 ]

03:  07 [ 7 ]

04:  75  [ + ]

05:  30  [ π ]

06:  85  [ = ]

07:  32, 6 [ STO 6 ]

08:  75  [ + ]

09:  01  [ 1 ]

10:  42  [ EE ]

11:  01  [ 1 ] 

12:  00 [ 0 ]

13:  65  [ - ]

14:  01  [ 1 ]

15:  42  [ EE ]

16:  01  [ 1 ] 

17:  00 [ 0 ]

18:  85 [ = ]

19:  -42  [  INV EE ]

20:  -34,6  [ INV SUM 6 ]

21:  33, 6 [ RCL 6 ]

22:  81  [ R/S ]

23:  71  [ RST ]



Example:


Seed:  0.98

Generation:

0.2015927

0.1294647

0.2178986

0.3864470

0.4292517



Until next time,


Eddie 


All original content copyright, © 2011-2023.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 


Saturday, July 23, 2022

HP 32SII Applications: Moments of Inertia, Conductor Temperature Change, Slit Patterns

HP 32SII Applications: Moments of Inertia, Conductor Temperature Change, Slit Patterns


Moment of Inertia - Uniform Disk


The moment of inertia on a uniform disk of radius r is:


I = 2 * π * L * ρ * ∫(r^3 dr, 0, R) 


where ρ = M ÷ ( π * R^2 * L)


The formula of inertia for the uniform disk can be simplified to:


I = M * R^2 * 1/2

where

M = mass of the disk

R = radius of the disk

I = inertia of the center of the mass


HP 32SII Program:


I01  LBL I

I02  INPUT M

I03  INPUT R

I04  x^2

I05  ×

I06  2

I07  ÷

I08  RTN


(12.0 bytes, CK = B55F)


Example:

 

Inputs:

M = 8 kg

R = 0.2 m


Result:

I = 0.16 kg * m^2


Source:

Texas Instruments Incorporated.  Texas Instruments TI-55III Scientific Calculator Sourcebook  Second Edition.  1984



Conductor Temperature Change


The temperature change due to the change of the resistance can be calculated as:


∆t = 1 ÷ α * ( R_2 ÷ R_1 - 1)


where:

∆t = change of temperature in °C

R_2 = new resistance in Ω  (R)

R_1 = new resistance in Ω  (F)

α = temperature coefficient of resistance (A)  (see table below and source)


Selected Temperature Coefficients of Resistance at 20°C (α):


Material:  α


Nickel:  0.005866

Iron:  0.005671

Aluminum:  0.004308

Copper:  0.004041

Silver:  0.003819

Gold:  0.003715

Alloy Steel (99.% iron):  0.003


HP 32SII Program:


T01  LBL T

T02  INPUT A

T03  INPUT R

T04  INPUT F

T05  ÷

T06  1

T07  -

T08  x<>y

T09  1/x

T10  ×

T11 RTN


(16.5 bytes, CK = DDA9)


Example:


Inputs:

A = 0.004041  (α, Copper)

R = 58 Ω  (new resistance)

F = 50 Ω  (old resistance)


Result:

39.594160 °C


Sources:


"Temperature Coefficient of Resistance"  All About Circuits.  Last Retrieved May 17, 2022.  https://www.allaboutcircuits.com/textbook/direct-current/chpt-12/temperature-coefficient-resistance/#:~:text=The%20resistance%2Dchange%20factor%20per,with%20an%20increase%20in%20temperature.


National Radio Institute Alumni Association  Mathematics For Radiotricians Washington, D.C.  1942


Slit Patterns


The intensity of diffraction pattern of the single slit can be calculated by the formula:


I = Im * (sin α ÷ α)^2


where:

Im = potential maximum intensity

α = (π * s * sin θ ÷ λ) in radians

s = slit width

λ = wavelength in Hz

θ = angle of diffraction in degrees


For a double slit:


I = Im * (cos B)^2 * (sin α ÷ α)^2


where:

B is in radians and

B = (π * d * sin θ ÷ λ)

d = distance between slits

θ = angle of diffraction in degrees

α = see the single slit formula above


HP 32SII:

A:  θ

S:  slit wdith

W:  wavelength, λ

I:  maximum intensity


LBL S: single slit

LBL D: double slit, uses LBL S


HP 32SII Programs:


Single Slit:


S01  LBL S

S02  DEG

S03  INPUT A

S04  SIN

S05  INPUT S

S06  ×

S07  π

S08  ×

S09  INPUT W

S10  ÷

S11  RAD

S12  ENTER

S13  SIN

S14  x<>y

S15  ÷

S16  x^2

S17  INPUT I

S18  ×

S19  RTN


(28.5 bytes, CK = 40E0)


Double Slit:


D01  LBL D

D02  XEQ S

D03  DEG

D04  RCL A

D05  SIN

D06  INPUT D

D07  ×

D08  π

D09  ×

D10  RCL÷ W

D11  RAD

D12  COS

D13  x^2

D14  ×

D15  RTN


(22.5 bytes, CK = 8BC7)


Example:


Inputs:

A = 8°

S = 1.96E-6 m

W = 500E-9Hz

I  = 1


Single Slit Calculation:

XEQ S:  0.333496


Double Slit Calculation:

XEQ D

D = 3E-5 m

Result:  0.068409


Source:

Saul, Ken.  The Physics Collection:  Ten HP-41C Programs for First-Year Physics Class  Corvallis, OR.  1986



Coming up:  Python Week:  August 1 to August 5, 2022


Eddie


All original content copyright, © 2011-2022.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author. 

Saturday, October 12, 2019

HP Prime: Law of Refraction

HP Prime: Law of Refraction 

Introduction

The program DRAWREFRACT, visually demonstrates the Law of Refraction, or Snell's Law:

n1 sin θi = n2 sin θt

The program asks for n1, θi, and n2; and calculates θt.  The program draws the incident ray (in red) and the refracted ray (in blue).  The calculator is set to Degrees mode and the Function app. 

Note: you can find the angle character ∡, by pressing [SHIFT] [ × ]. 

HP Prime: Law of Refraction: DRAWREFRACT

Program:
EXPORT DRAWREFRACT(n1,θ1,n2)
BEGIN
// EWS 2018-08-20
// drawing Descates law
HAngle:=1; // Degrees
LOCAL θ2,x1,y1,x2,y2;
LOCAL str1,str2;
// window setup
STARTAPP("Function");
STARTVIEW(11,0);  // Decimal zoom
// calculation
θ2:=ASIN(n1*SIN(θ1)/n2);
x1:=RE(16∡(θ1+90));
y1:=IM(16∡(θ1+90));
x2:=RE(16∡(270+θ2));
y2:=IM(16∡(270+θ2));
// plot
RECT();
// draw axis
LINE(0,−16,0,16,0);
LINE(16,0,−16,0,0);
// draw analysis
LINE(0,0,x1,y1,#FF0000h);
LINE(0,0,x2,y2,#0000FFh);
str1:="n = "+STRING(n1)+
", θi = "+STRING(θ1);
str2:="-> n = "+STRING(n2)+
", θt = "+STRING(θ2);
TEXTOUT(str1,−15,−5,4,#FF0000h);
TEXTOUT(str2,−15,−8,4,#0000FFh);
WAIT(0);
// display home
STARTVIEW(−1);
END;

Example

n1 = 1.001
θ = 34.5°
n2= 1.205

DRAWREFRACT(1.001, 34.5, 1.205)

Result:
θt = 28.0678429359°



Eddie

All original content copyright, © 2011-2019.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.

Sunday, October 21, 2018

HP 11C (and Emulator Apps): Thin Lens Analysis

HP 11C (and Emulator Apps):  Thin Lens Analysis




Given the distance from the object to the lens (U) and the focal distance (F), the program calculates object from the image from the lens (V) and magnification (M) of the image by the following equations:

V = 1 / (1/F - 1/U)
M = -V / U

HP 11C Program: Thin Lens Analysis

Note:  The keystrokes are also applicable for any HP 11C emulator apps. 

001 42, 21, 13 LBL C
002 15 1/x
003 34 x<>y
004 15 1/x
005 43, 36 LAST x
006 33 R↓
007 30 -
008 15 1/x
009 31 R/s
010 36 ENTER
011 16 CHS
012 43, 33 R↑
013 10 ÷
014 43, 32 RTN

To run:  enter U (object distance) then F (focal distance).  Then run label C ([ f ] [10^x] (C)).  The first result is V (image distance).  Press [R/S] to get M (magnification).

Example 1:
Input:  U = 0.24 ft, F = 0.16 ft
Output:  V = 0.4800 ft (R/S) M = -2.0000

Example 2:
Input: U = 1.5 ft, F = 0.8 ft
Output: V ≈ 1.7143 ft, M ≈ -1.1429

Eddie

All original content copyright, © 2011-2018.  Edward Shore.   Unauthorized use and/or unauthorized distribution for commercial purposes without express and written permission from the author is strictly prohibited.  This blog entry may be distributed for noncommercial purposes, provided that full credit is given to the author.  Please contact the author if you have questions.

Friday, December 22, 2017

Optics: Transmitted Angle, Critical Angle

Optics:  Transmitted Angle, Critical Angle



Formulas Used

Reflected Angle:  θr = θ

Transmitted Angel:  θt = asin((n1 * sin θ)/n2)

Critical Angle:  θc = asin(n1/n2),  n2 > n1

Perpendicular Frensel Parameters (t, r):

t = (2 * n1 * cos θ) / (n1 * cos θ + n2 * cos θt)

r = (n1 * cos θ – n2 * cos θt) / (n1 * cos θ + n2 * cos θt)

Parallel Fresnel Parameters (t, r):

t = (2 * n1 * cos θ) / (n1 * cos θt + n2 * cos θ)

r = (n1 * cos θt – n2 * cos θ) / (n1 * cos θt + n2 * cos θ)

Table of Indices of Reflection (n)

Air
1.00
Moissanite (SiC)
2.65
Carbon Dioxide (CO2)
1.0045
Pyrex
1.47
Cubic Zirconia
2.15
Salt (NaCl)
1.54
Diamond
2.42
Sapphire
1.76
Glass
1.52
Silicon
3.45
Ice
1.31
Water
1.33

HP Prime Program FLATOPTIC

EXPORT FLATOPTIC()
BEGIN
// 2017-12-17 EWS
// Solar Energy

// Change to degree
HAngle:=1;

// index of refraction

LOCAL L0:={1,1.0045,2.15,2.42,
1.52,1.31,2.65,1.47,
1.54,1.76,3.45,1.33};

LOCAL L1:={"Air","CO2",
"Cubic Zirconia","Diamond",
"Glass","Ice",
"Moissanite (SiC)","Pyrex",
"Salt (NaCl)","Sapphire",
"Silicon","Water"};

LOCAL L2:={"Perpendicular",
"Parallel",
"None"};

LOCAL n1,n2,k1,k2,θ,t,r;
LOCAL θc,θt,θr,x;

INPUT({{k1,L1},{k2,L1},θ,{x,L2}},
"Optic - Flat Interface",
{"Medium 1: ","Medium 2: ",
"Angle (°): ","Polarized?"}
);

// Calculation
PRINT();

θr:=θ;
PRINT("Reflect Angle: "+θr+"°");

n1:=L0(k1); n2:=L0(k2);
IF n2>n1 THEN
θc:=ASIN(n1/n2);
PRINT("Critical Angle: "+θc+"°");
END;

θt:=ASIN(n1*SIN(θ)/n2);
PRINT("Transmitted Angle: "+
θt+"°");

IF x==1 THEN
t:=(2*n1*COS(θ))/
(n1*COS(θ)+n2*COS(θt));
r:=(n1*COS(θ)-n2*COS(θt))/
(n1*COS(θ)+n2*COS(θt));
PRINT("t: "+t);
PRINT("r: "+r);
END;

IF x==2 THEN
t:=(2*n1*COS(θ))/
(n1*COS(θt)+n2*COS(θ));
r:=(n1*COS(θt)-n2*COS(θ))/
(n1*COS(θt)+n2*COS(θ));
PRINT("t: "+t);
PRINT("r: "+r);
END;

END;

TI-84 Plus CE Program

"EWS 2017-12-17"
{1,1.0045,2.15,2.42,1.52,1.31,2.65,1.47,1.54,1.76,3.45,1.33}→L6
Degree
For(K,1,2)
Disp "1. AIR 2. CO2 3. CUB.ZIC.","4. DIAMOND 5. GLASS 6. ICE","7. MOISANITE","8. PYREX 9. NACL","10. SAPPHIRE 11. SIL.","12. WATER"
Input M
If K=1:M→N
End
L6(N)→N:L6(M)→M
Input "INCIDENT: °",θ
sin^-1(N*sin(θ)/M)→A
Disp "TRANSMITED: °",A
If M>N:Then
sin^-1(N/M)→C
Disp "CRITICAL: °",C
End
Pause
Menu("POLARISE?","PERPENDICULAR",1,"PARALLEL",2,"NONE",3)
Lbl 1
(2Ncos(θ))/(Ncos(θ)+Mcos(A))→T
(Ncos(θ)-Mcos(T))/(Ncos(θ)+Mcos(T))→R
Disp "T",T,"R",R
Goto 3
Lbl 2
(2Ncos(θ))/(Ncos(T)+Mcos(θ))→T
(Ncos(T)-Mcos(θ))/(Ncos(T)+Mcos(θ))→R
Disp "T",T,"R",R
Lbl 3



Source:
Klaus Jäger, Olindo Isabella, Arno H.M. Smets, René A.C.M.M. van Swaaij, Miro Zeeman  Solar Energy: Fundamental, Technology, and Systems  Delft University of Technology, 2014
(no money is made from this blog entry)

Hopefully you find this useful.

Eddie


This blog is property of Edward Shore, 2017

Wednesday, April 1, 2015

HP Prime: Equation Library



The program eqnlib offers 47 equations for HP Prime’s Solver App.  Just run the eqlib program, select the category that you are interested in, and select the equation within that category and you are off and running!

Categories include:
* Geometry  (areas, volumes, surface areas)
* Finance  (monthly loans, sales tax, break-even)
* Temperature Conversion (Fahrenheit to and from Celsius)
* Physics: Problems of Motion  (linear distance, circular motion, pendulums, terminal & escape velocity)
* Sound  (speed of sound, Doppler effect, loudness)
* Optics (Lens and Snell equations, spherical refraction)
* Electronics (2 resistors series and parallel, thermal noise, Ohm's Law)
* Astronomy (parallax, luminosity, Kepler's 3rd Law, time dilation)
* Great Circle Calculations 
* Angle of Incidence Calculations
* Gases (Ideal and Boyle's Gas Laws, heat capacity, air density, isothermal expansion)
* Fluids (depth pressure, fluid flow, Bernoulli's Equation)

When calling each equation, a screen will show each of the variables used, and if necessary, what units you will need to use.  While SI (meters, kilograms, seconds) units are used, some equations call for the temperature to be in Celsius, while others require the temperature to be in Kelvin.    

You can download the hpprgm file and the PDF document here:


The PDF document will list the equations available and the variables used.  For eqlib, the global variables A-Z and theta are used.  The program is free.

Enjoy!

Eddie


P.S. This is not an April's Fool joke, just in case you were wondering.  


This blog is property of Edward Shore, 2015.  

Saturday, December 6, 2014

Some Science Stocking Stuffings


Einstein's Time Dilation

Recall that equation for time dilation is:

Δt = Δt0 / √(1 - u^2/c^2)

Where:
Δt = time observed by the person standing still
Δt0 = time observed by the traveler (in the observer's frame of reference)
u = speed of the moving object , which contains the traveler
c = speed of light in a vacuum = 299,792,458 m/s

In short, the traveler will note observe and note that time Δt0 has passed, which the person standing still observes that time Δt has passed. The closer someone goes to the speed of light, that less person she/he experiences. You will need to go super fast. Driving at 65 mph (29.0756 m/s) on the freeway won't cut it and here's why:

For 1 unit of time to pass for the person driving 65 mph (Δt0 = 1), the change of time for the observer (Δt) is:

Δt = 1/√(1 - 29.0756^2/299,792,458^2) ≈ 1.0000000000000047 (that is fourteen zeroes between the decimal point and the 4) (The Wolfram Alpha app was used for this calculation).

Virtually the same time passes.

Same deal regarding observing an airplane flying at 600 mph (268.224 m/s). For the person watching the plane, for a plane's passenger, pilot, or cocktail and peanut server to observe one unit of time, us watchers observe 1.0000000000004 (twelve zeroes) units of time.

If you want to be on an object where the people observing you experience twice the time (Δt = 2) you do (Δt0 = 1), you will need to travel (c*√3)/2 or 259,627,884.491 m/s (580,771,037.247 mph). That is 86% the speed of light!

Archer's Paradox (E.J. Rendtroff, 1913)

In archery, archers aim their arrows slightly to the side, instead of directly at the target. On the surface, that seems crazy. This is where the Archer's Paradox comes into effect.

Basically, when the arrow is shot, it travels in an "S" curve. Drawing a string makes the arrow bend such that he tip is pointed away from the target. As the arrow is fired and the string returns to the bow, the arrow bends the other way, turning the arrow back to the target.

Other factors to making accurate shots include the stiffness of the arrow, brace height, and wind conditions. I found this video by Billgsgate helpful:

http://youtu.be/bNlx6MBlymw

Galactic Coordinates

Galactic Coordinates are spherical coordinates that are set such as:

* The center is our sun.
* The coordinates are (l°, b°), where l is the longitude (0° to 360°, flat angle) and the latitude (-90° to 90°, height).
* Pointing "due east", l = 0° and b = 0° is pointing towards the center of the Milky Way. "Due west", l = 180° and b = 0° points away from the center of the Galaxy.

Using Wolfram Alpha ( http://m.wolframalpha.com ) and an online coordinator converter ( http://ned.ipac.caltech.edu/forms/calculator.html ), here are the 30° longitude markers when latitude is 0° (b = 0°):

* 0° points towards the constellation Sagittarius (as it should, it having the Milky Way center)
* 30° points towards Aquila the Eagle
* 60° points towards the Vulpecula the Fox
* 90° points towards Cygnus the Swan
* 120° points towards Cassiopeia the Vain Queen
* 150° points towards Perseus the Hero
* 180° points towards Auriga the Charioteer
* 210° points towards Monoceros the Unicorn
* 240° points towards Puppis (a ship's poop deck)
* 270° points towards Vela (a ship's sails)
* 300° points towards Crux, The Southern Cross
* 330° points towards Norma (a carpenter's square (measuring tool))

Spherical Lenses (see figure 2 below)

Variables:
P = place of object (with distance s)
P' = place of image (with distance s')
C = center of curvature
V = vertex of the lens

General relations:

tan α = h/(s - δ)
tan β = h/(s' - δ)
tan Φ = h/(R - δ)

However, if α < π/2 ( α < 45° ), we are dealing with paraxial rays:

1/S + 1/S' = 2/R

Surprisingly, the object is far from the vertex.


Forgive me if I repeat things. Instead of going out to clobber everyone last Black Friday for that extra 10% off, I stayed home and cracked open some books that I have been meaning to look at for months. I hope you find this enjoyable and insightful.

The best always,

Eddie


P.S. I was thinking about adding a section (or blog entry) about the age of Aquarius and some of the head scratchers I have about it. I am not sure if this subject would be appropriate for this blog. If you have any thoughts about this, or anything else, go and ahead and comment! - E.S.



This blog is property of Edward Shore. 2014

Friday, June 7, 2013

HP35S Fraunhofer Diffraction - Spherical

HP35S Fraunhofer Diffraction - Spherical
Source: HP 67/97 Optics Pac, June 1978

This version takes advantage of the HP's integral function. The trade off is that two labels are required. On the plus side, this program can be typed directly into a 32Sii or 33S.

Labels: F (Main), G (Integral)

Variables:

D = diameter in microns (10^-6 meters)
L = wavelength of light in microns (10^-6 meters)
A = θ, angle of the slit, entered in degrees

Formulas:

X = π D ÷ L
W = X sin A
J = int(cos(T - W sin T) dT, 0, π)/π
I = (X^2 J ÷ W)^2

Output:

Bessel function of the first kind (J) - paused for 2 seconds;
Fraunhofer Intensity (I) - dimensionless - as I understand it, this is how intense the diffraction is

Programs:

LBL F
INPUT D
INPUT L
÷
π
*
STO X
INPUT A
→RAD
STO A
SIN
*
STO W
RAD
0
π
FN= G
∫ FN dT
STO J \\ Bessel store in J for future use, if desired
PSE
PSE
RCL ÷ W
RCL X
x^2
*
x^2
RTN

LBL G
COS(T-W*SIN(T))/π \\ enter as an equation (press [EQN])
RTN




This blog is property of Edward Shore. 2013

Symmetric Quartic Equation - Python

Symmetric Quartic Equation - Python Note: The code is programmed with a TI-84 Evo. No modules are used, so the scripts should be adopt...