Thursday, January 15, 2015

fx-5800p: Creating a Custom Formula

fx-5800p: Creating a Custom Formula

Here is a short tutorial on how to create a custom formula for the Casio fx-5800p. The fx-5800p has a library of 128 formulas ranging in various topics from geometry to physics and engineering.

Creating an Original Formula:

1. Press [ MODE ]
2. Select 5 for Programming Mode
3. Select 1 for New
4. Give a name, no more than 12 letters or numbers. Symbols are not allowed.
5. At the File Mode screen, select 3 for Formula.
6. Type your formula. Use the y=f(x) format.
7. When you are done, press the [ EXIT ] key.

Tip: You can use lower case letters, Greek letters, and stylized letters in the formula. Press [ FUNCTION ], then 4 for ALPHA to get access to these characters.

Remember: Variables are one character length. The fx-5800p will execute implied multiplication when it executes two more consecutive variables.

Running Your Original Formula:

1. Be in COMP Mode. (MODE, 1)
2. Press the [ FMLA ] button. Select 1 for the Original type.
3. Select your formula, press [ EXE ]
4. Use the arrow keys to enter values or scroll the formula. When you are ready to compute, press [ CALC ].


And that is about all there is to regarding creating and calculating formulas on the Casio fx-5800p.


Eddie


This blog is property of Edward Shore. 2015

Friday, January 9, 2015

fx-5800p: Least Squares Fitting

fx-5800p: Least Squares Fitting

Program LSQ (least squares) for the Casio fx-5800p. The program LSQ (least squares) allows us to fit a polynomial or a multiple-linear regression line given certain data and outcomes.

Variables:

Mat A = independent data matrix
Mat B = dependent data matrix, 1-column matrix
Mat C = coefficient matrix. This is the matrix LSQ solves for.
Mat D = predictive values

Calculations:

Coefficients
Mat C = (Mat A^T * Mat A)^-1 * Mat A^T * Mat B = (Mat A)^+ * Mat B

Predictive Values
Mat D = Mat A * Mat C

Prog "LSQ"
"LSQ"
"A = IND. DATA"? → Mat A
"B = DEP. DATA"? → Mat B
( Trn( Mat A ) * Mat A )^-1 * Trn( Mat A ) * Mat B → Mat C
"C = COEFS."
Mat C ◢
Mat A * Mat C → Mat D
"D = PRED."
Mat D


Examples

Multiple Linear Regression

Fit the following data to y = a * x1 + b * x2 + c:
(x1, x2, y):
(1, .6, .45)
(2, .3, .49)
(3, .2, .36)
(4, .8, .36)
(5, .6, .39)

Note that the equation has a constant term c. Set up our matrix A with three columns: one corresponding to the term a * x1, the second for the term b * x2, and a column of ones for the constant column c.

Mat A =
[[ 1, .6, 1]
[2, .3, 1]
[3, .2, 1]
[4, .8, 1]
[5, .6, 1]]

Matrix B will have the dependent values, in this case a 5 x 1 matrix.

Mat B =
[[ .45 ]
[ .49 ]
[ .36 ]
[ .38 ]
[ .39 ]]

With the matrices set up, run LSQ. You can enter the required matrices manually (with [ ALPHA ] [ ln ] for the left bracket, [ ALPHA ] [ x^ ] for the right bracket) or used pre-stored matrices. The fx-5800p has room for only six matrices (Mat A - Mat F).

Results:
Coefficients, Mat B =
[[ -0.02381395349 ]
[ 0.0162790697 ]
[ 0.4773023256 ]]

This corresponds to the equation for the line:

y = -0.02381395349 * x1 + 0.0162790697 * x2 + 0.4773023256

Predicted y values, Mat C =
[[ 0.463255813951]
[ 0.4345581395 ]
[ 0.4091162791 ]
[ 0.3950697674 ]
[ 0.368 ]]

Polynomial Regression

Fit the quadratic polynomial of form y = a*x^2 + b*x + c with data:
(-3, -2.25)
(-1, 0)
(1, -0.11)
(3, 2.23)
(5, 5.24)

We have one variable. However the equation has both x and x^2. Hence, we will set up matrix A as follows: first column has x^2 values, second has x values, and third column contains ones because it corresponds to the constant term (c).

Mat A =
[[ 9, -3, 1]
[1, -1, 0]
[1, 1, -0.11]
[9, 3, 1]
[25, 5, 1]]

Again, matrix B has the dependent values:

Mat B =
[[ -2.24 ]
[ 0 ]
[ -0.11 ]
[ 2.23 ]
[ 5.24 ]]

Results:

Mat C =
[[ 0.07125 ]
[ 0.717 ]
[ -0.33425 ]]

which corresponds to: y = 0.07125 * x^2 + 0.717 * x - 0.33425

Mat D =
[[ -1.844 ]
[ -0.98 ]
[ 0.454 ]
[ 2.458 ]
[ 5.032 ]]

Even though the least-squares method isn't perfect, it is super powerful. Until next time, have a great day, stay healthy, and stave off any viruses because they have gone crazy this winter!

Eddie

Source: http://en.m.wikipedia.org/wiki/Regression_analysis

This blog is property of Edward Shore. 2015

Monday, January 5, 2015

fx-5800p: Runge-Kutta 4th Order Method - Differential Equations



Runge-Kutta 4th Order Method - Differential Equations

The program RK4 estimates solutions to the differential equation y dy/dx = f(x,y) given the initial condition (x_n, y_n). With step size h, the point (x_n+1, y_n+1) is calculated by:

x_n+1 = x_n + h
y_n+1 = y_n + (k1 + 2*k2 + 2*k3 + k4)/6

Where:

k1 = h * f(x_n, y_n)
k2 = h * f(x_n + h/2, y_n + k1/2)
k3 = h * f(x_n + h/2, y_n + k2/2)
k4 = h * f(x_n + h, y_n + k3)

The program RK4 uses a subroutine FXY. The program FXY is where the y'(x) is stored in terms of X and Y. The result is stored in the variable Z.

Variables used in RK4 and FXY:
A = x_n
B = y_n
C = x_n+1
D = y_n+1
H = step
K = k1
L = k2
M = k3
N = k4
E, X, Y, and Z are also used

Remember for the fx-5800p, all variables (A-Z, and Z[#]s) are global, meaning they will carry over from programs and subroutines.

Anything following the double slash (//) is a comment.

Once the first point (x_n+1, y_n+1) is calculated, RK4 will ask if you want the next point (x_n+2, y_n+2) calculated. Enter 1 at the prompt for "Yes".

Program FXY
type f(X,Y) here → Z

// A RETURN command is implicit.

Program RX4
"INITIAL COND."
"X0"?→ A
"Y0"?→ B
"STEP"?→ H
Lbl 0 // main routine
A → X // k1
B → Y
Prog "FXY"
H * Z → K
A + H ÷ 2 → X // k2
B + K ÷ 2 → Y
Prog "FXY"
H * Z → L
B + L ÷ 2 → Y // k3
Prog "FXY"
H * Z → M
A + H → X // k4
B + M → Y
Prog "FXY"
H * Z → N
X → C // x_n+1
B + (K + 2*L + 2*M + N) ÷ 6 → D // y_n+1
"RESULT"
"X1 = "
C ◢
"Y1 = "
D ◢
"NEXT POINT?"
"1 = YES 0 = NO"
? → E
E ≠ 1 ⇒ Goto E
C → A
D → B
Goto 0
Lbl E
"DONE"



Example: y'(x) = y - x with the initial condition (0,2).
Find y when x = 0.1 and x = 0.2, respectively.
In this case, our step is h = 0.1.

Program FXY will have this:
Y - X → Z


Running RK4 gives these results:
x = 0.1, y = 2.205170833
x = 0.2, y = 2.421402571

Eddie

This blog is property of Edward Shore. 2015

Sunday, January 4, 2015

fx-5800p: Bisection Method

fx-5800p: Bisection Method

The program BISECT finds a root for f(X) given an initial open interval of (A, B). I have the tolerance set to 10^-9. To prevent calculations from going "forever", I set the maximum number of iterations to 150. You can adjust these factors in the program as desired.

The first point to be tested is (A+B)/2. If this is a root, the program stops and it will return this root as a result.

The program BISECT calls on a subroutine program FX. The function f(X) is stored in FX.

While programming, use the Prog to call subroutines. The syntax is:


Prog "name of subroutine in quotes"


Press [SHIFT] [FILE].

Remember for the fx-5800p, all variables (A-Z, and Z[#]s) are global, meaning they will carry over from programs and subroutines.

Anything following the double slash (//) is a comment.

Program FX
insert function of X here → Y
//store result in Y

// A Return command is implied.

Program BISECT
1 → I // I = iteration count
"A"? → A
"B"? → B
A → X
Prog "FX"
Y → C
B → X
Prog "FX"
Y → D
While Abs(A-B) > 10^(-9) // tolerance setting
(A + B) ÷ 2 → X
Prog "FX"
If Y = 0
Then
Break
IfEnd
If Y*C > 0
Then
X → A
Y → C
Else
X → B
Y → D
IfEnd
I + 1 → I
If I > 150 // iteration limit
"ITER. EXCEEDED" ◢
Stop
IfEnd
WhileEnd // finish the loop
"ITERATIONS:" ◢ // optional
I ◢ // optional
"ROOT=" ◢ // result
X


Example:

f(X) = X^(3)-2X+1, for the intervals (-2,0), (0,2), and (0,1).

Program FX would look like this:

Program FX
X^3 - 2*X + 1 → Y


Run BISECT.

For (-2,0), results are:
ITERATIONS: 32
ROOT = -1.618033989

For (0,2), results are:
ITERATIONS: 1
ROOT = 1

For (0,1), results are:
ITERATIONS: 31
ROOT = 0.6180339893



This blog is property of Edward Shore. 2015

New HP Prime Software Version Released (6975)

HP Prime Software Version 6975

Rev. 6975, date 12/3/2014.

Link:  ftp://ftp.hp.com/pub/calculators/Prime/

The above link provides files for the calculator, connectivity kit, and emulator.

--------------------------------------------------------------------------------------------------------------------------

The Museum of HP Calculators

Here a great place to discuss calculators, specifically HP calculators.  It is a really great place for HP calculator owners.  The link to the forum is here:  http://www.hpmuseum.org/forum/.

--------------------------------------------------------------------------------------------------------------------------

DISCLAIMER: I am not an employee of Hewlett Packard.  

Have fun,

Eddie

Thursday, January 1, 2015

TI-84+: Windchill Factor, Boiling Point at Various Elevations, Velocity of Seismic Waves

Happy New Year!  Time flies when we are having fun - we are in 2015 - 15 years into the 21st century.  Here's to making 2015 happy and prosperous for all!

Without further ado, here are the first programs for 2015!

Wind-Chill Factor

The equation, provided by NOA 2011, to determine wind chill is:

W = 35.74 + .6215*T – 35.75*V^.16 + .4275*T*V^.16

Where:
T = air temperature (°F)
V = speed of the wind (mph)

Program WINDCHIL
: Input “AIR TEMP IN °F:”, T
: Input “WIND SPEED (MPH):”, V
: 35.75+.6215*T-35.75*V^.16+.4275*T*V^.16→W
: Disp “WIND CHILL FACTOR:”, W

Example 1:
V = 25 mph, T = 50°F.  Result:  W = 42.75596219
V = 40 mph, T = 20°F.  Result:  W = -.9093161248

Source:  Thomas J. Glover.  “Pocket Ref: 4th Ed” – 2012.  Sequoia Publishing, Inc.:  Littleton, CO




Boiling Point at Various Elevations

Using data   from Pocket Ref, the boiling point of water at certain elevations can be estimated by the following equation:

Y » 211.99262 – (1.94802*10^-3)*X + (7.17273*10^-9)*X^2

X = elevation in feet
Y = boiling point of water in °F

Program BOILH20:
: Input “ELEV. IN FEET:”, X
: 211.99262-(1.94802E-3)*X+(7.17273E-9)*X^2→Y
: Disp “APPROX BAIL PT. (°F):”, Y

Examples:
X = elevation (feet)
Y = boiling point (°F)
250
211.5060633
1000
210.0517727
2750
206.6898088


Source:  Thomas J. Glover.  “Pocket Ref: 4th Ed” – 2012.  Sequoia Publishing, Inc.:  Littleton, CO



Velocity of P-Waves and S-Waves

In measuring seismic waves (earthquakes) of p-waves (primary waves) and s-waves (secondary waves), the following equations can be used:

(I)     First Lamé Parameter:
λ = (v*E)/((1+v)*(1-2*v))

Where: 
v = ratio of soil.  The following parameters are stated from the Foundation Engineering Handbook:

Type of Soil
v =
Clay, above the water table
0.4
Saturated Clay, below the water table
0.5
Wet Sand
0.35
Dry Sand or Rock
0.25

E = elasticity of the soil, measured in thousand-feet per pound

(II)   Shear Modulus (modulus of rigidity)
‘μ = E/(1 + v)

(III) Velocity of the P-Wave (feet/second)
P = √((λ+2μ)*g*1000/w)

w = specific soil weight, in pounds per cubic foot
g = Earth’s gravity constant,  g = 32.1740486 ft/s^2

(IV) Velocity of the S-Wave (feet/second)
S = √(μ*1000*g/w)

Program SEISMIC
: Disp “ELASTICITY (1000 LB/FT)”
: Prompt E
: Disp “SPEC. SOIL WEIGHT”, “(LB/FT^3)”
: Prompt W
: Menu(“SOIL TYPE”, “CLAY”, 1, “BELOW H20 TABLE”, 2, “WET SAND”, 3,
“DRY SAND/ROCK”, 4)
: Lbl 1
: .4→V
: Goto 5
: Lbl 2
: .5→V
: Goto 5
: Lbl 3
: .35→V
: Goto 5
: Lbl 4
: .25→V
: Goto 5
: Lbl 5
: (EV)/((1+V)(1-2V))→L
: E/(2(1+V))→M
: √((L+2M)*32174.0486/W)→P
: √(M*32174.0486/W)→S
: Disp “P-WAVE (FT/S)”,P
: Disp “S-WAVE (FT/S)”,S

Example:
Input: 
E = 3000 pounds per square foot
w = 120 pounds per cubic foot
Type of soil: Clay (v=.4)
Output:
P-Wave Velocity » 1312.863186 ft/s
S-Wave Velocity » 535.9741515 ft/s

Sources: 

Hsai-Yang Fang.  “Foundation Engineering Handbook” Springer Science & Business Media.  1990.

 Indrahil Goswami, Ph.D. P.E. “Civil Engineering PE Breadth and Depth, Exam Guide.  2nd Edition” McGraw Hill. 2014

----

This blog is property of Edward Shore. 2015.  




Wednesday, December 31, 2014

Happy New Years!

We are entering 2015 around the world today.  Happy New Year!

Eddie


Sunday, December 28, 2014

TI-84+: Doppler Effect, Finding an Equation of a Line with 2 Points, Arc Length of f(x), Orbit around the Sun

--------------------------------

Doppler Effect for Sound in Air


 
Program DOPPLER

: Input “TEMP IN ⁰F:”, T

: Input “SOURCE FREQ (HZ):”,F

: 331.4+0.6*5/9*(T-32)→C

: Disp “VELOCITY”, “(TOWARDS IS NEGATIVE)”

: Input “(MPH):”, S

: S/2.2369→S

: C/(C+S)*F→R

: Disp “SPEED OF SOUND (MPH)”, C*2.2369

: Disp “OBSERVED FREQUENCY”, R

 

(223 bytes)

 

Variables:

C = calculated speed of sound in air, stored in m/s

S = speed of observer relative to the source, stored in m/s.  S<0 if the source and observer are getting closer.  S>0 when the source and observer are moving apart.

F = source frequency, in Hz

R = observed frequency, in Hz

 

Example:

An observer is moving towards emitting a sound of 261.6 Hz (Middle C) at about 1.05 mph.  Input velocity as -1.05. 

 

Results:

Speed of Sound:  769.6427267 mph

Observed Frequency: 261.9573804 Hz

 
--------------------------------

Finding the Equation of a Line between Two Points

 
Enter two points as complex numbers (x+y*i).  The complex value i is accessed by pressing [2nd] [ 3 ]. Direction is important, P is your starting point and Q is your finishing point.

 
Program PT2LINE

: a+bi

: Disp “ENTER POINTS AS”,”COMPLEX NUMBERS”,”X+Yi”

: Prompt P, Q

: angle(Q-P)→S

: If S=90⁰ or S=-90⁰

: Then

: Disp “X=”, real(P)

: Else

: imag(P)-tan(S)*real(P)→C

: Disp “Y=”,tan(S),”* X +”,C

: End

 

(143 bytes)

 

Example 1:

Find an equation for the points, going from (2,5) to (4,6).

Input:

P = 2+5i

Q = 4 + 6i

Output:

Y = 0.5 * X + 4

 

Example 2:

Find an equation for the points, going from (7,3) to (9,-1).

Input:

P = 7+3i

Q = 9-i

Output:

Y = -2 * X + 17


--------------------------------

Arc Length of a Function

 

Formula: S = ∫(√(1+f’(x)^2) dx, a, b)

We will use a trick with the function variable to pull this integral off. 

** Caution: This will provide an approximate answer.  Best use four to five digits at most.

Note: Enter Y1 by pressing [VARS], [ right ] for Y-VARS, [ 1 ] for Function, [ 1 ] for Y1.

 

Program ARCLENGT

: Radian

: Disp “INPUT Y1 AS A STRING”

: Prompt Y1, A, B

: fnInt(√(1+nDeriv(Y1,X,X)^2),X,A,B)→S

: Disp “ARC LENGTH:”,S

 

(91 bytes)

 

Example:  Find the arc length of the function y = e^(-x^2/2) from x = 0 to x = 3.

 

Input:

Y1:  “e^(-X^2/2)”   (you can leave the second quote out)

A:  0

B:  3

 

Result:

S:  3.20863  (approximately)

 
--------------------------------

Orbit around the Sun Using Kepler’s Third Law

(using US Units)

 

The Mass of the Sun is 4.384 x 10^30 pounds.

 

The universal gravitational constant is:

G = 6.67384 x 10^-11 m^3/(s^2*kg) = 7.23243 x 10^-6 mi^3/(y^2*lb)

 

Kepler’s third law is:

P = √((4*Ï€^2*a^3)/(G*(m1 + m2))

Where

a = average radius between the two objects

G = universal gravitational constant

m1 = mass of object 1

m2 = mass of object 2

P = orbit of object 2 around object 1

 

Letting m1 be the mass of the sun and simplifying in U.S. units, the periodic orbit simplifies to:

P ≈ √((5458527.439*a^3)/(4.3840 x 10^30 + m2))

** Approximate values

 

Program KEPLER3

: Disp “ORBIT AROUND THE SUN”

: Input “MASS (POUNDS):”, M

: Input “AVG. RADIUS (MI):”, A

: √((5458527.439*A^3)/(4.384E30+M))→P

: Disp “ORBIT IN YEARS:”,P

 

(135 bytes)

 

Examples:

 
Planet/Celestial Object
Mass (pounds)
Avg. Radius (miles)
Orbit (years)
Earth
1.317E25
92.954E6
1.000009092
Jupiter
4.186E27
483.682E6
11.86410888
Pluto
3.244E22
3.67005E9
248.0906781

 
This blog is property of Edward Shore.  2014.
 

 

Sunday, December 21, 2014

Happy December Solstice!

Today, December 21, 2014, is the December Solstice.  In the Northern Hemisphere, it is the first day of winter.   In the Southern Hemisphere, it is the first day of summer.  As someone who lives in California, I must admit I feel a little jealous of all of you enjoying the long day living around our Tropic of Capricorn,  I love the sunshine. 

I want to wish everyone a Happy, Healthy, Safe, and Celebratory Solstice, and Happy Holidays (Christmas, Hanukkah, and all the holidays that are being celebrated worldwide). 

I thank everyone who follows this blog, comments, and readers.  Thank you for making this blog the success that it is. 

I'll probably speak to you next week - until then, CHEERS!

Take care of each other.


Eddie

 

Tuesday, December 16, 2014

HP Prime and HP 50g: Using the LSQ Function to find the Moore-Penrose Inverse of a Matrix

HP Prime and HP 50g:  Using the LSQ Function to find the Moore-Penrose Inverse of a Matrix

  
Recall that the Moore-Penrose Inverse of a Matrix A, A^+, with r rows and c columns is:

If r ≤ c and rank(A) = r  (horizontal matrix), then:
A^+ = A^T * (A*A^T)^-1

If r ≥ c and rank(A) = c  (vertical matrix), then:
A^+ = (A^T * A)^-1 * A^T

You can see the blog entry about the Moore-Penrose inverse here:  http://edspi31415.blogspot.com/2014/08/moore-penrose-inverse-of-matrix.html.

On the LSQ (Least Squares Solution Command) function, featured on both the HP Prime and HP 50G, you can find A^+.

Syntax to find A^+ using the LSQ Command

HP Prime:

LSQ(matrix, IDENMAT(r))

Where IDENMAT is the identity matrix command. 

Path to IDENMAT:  Toolbox, Math, 7. Matrix, 4. Create, 2. Identity
Path to LSQ:  Toolbox, Math, 7. Matrix, 7. Factorize, 2. LSQ

HP 50g:

2:  identity matrix of dimension r x r  (R IDN)
1:  matrix
LSQ

Build the identity matrix by entering r, then [Left Shift], [5] (MATRICES), [F1] (CREATE), [F4] (IDN)
Path to LSQ:  [Left Shift], [5] (MATRICES), [F2] (OPER), [NXT], [F2] (LSQ)

Examples (answers are rounded to five decimal places):

Example 1

M =
[[2, 5],
[3, 3],
[4, 5]]  
(3 x 2 matrix, r = 3)

HP Prime:  LSQ(M, IDENMAT(3))
HP 50g:   2:  (3 IDN), 1: M

Result:

M^+ »
[[-0.45026, 0.31579, 0.21579],
[0.35263, -0.15789, -0.05789]]

Example 2

M =
[[4, 0.3, -0.8, 4.8, 2.5],
[-1.8, 3.6, 4.2, 4.4, -7]] 
(2 x 5, r = 2)

HP Prime:  LSQ(M, IDENMAT(2))
HP 50g:   2:  (2 IDN), 1: M

Result:

M^+ »
[[0.0853, -0.01272],
[0.01109, 0.03586],
[-0.01224, 0.04039],
[0.11059, 0.04939],
[0.04594, -0.06586]]

  This blog is property of Edward Shore. 2014. 


Sunday, December 14, 2014

Bingo: Number of Cards and Odds of Winning

Bingo

A standard BINGO board has a 5 x 5 matrix. Each column is dedicated to a letter, mainly B, I, N, G, and O. 75 numbers are assigned to each number as follows:

B: 1 to 15
I: 16 to 30
N: 31 to 45
G: 46 to 60
O: 61 to 75

Each column has 5 of 15 possible numbers, except the N column, which only has 4. The N column has a Free Space.

How Many Different Bingo Cards Are There?

A bingo card has five rows, five columns , and two diagonals. The middle row, middle column, and the two diagonals contain the Free Space.

Each of columns have the following number of arrangements:
B Column: nPr(15,5) = 15!/(15-5)! = 360,360
I Column: 360,360 (see B column)
N Column: nPr(15,4) = 15!/(15-4)! = 32,760 (remember the Free Space!)
G Column: 360,360 (like the B and I columns)
O Column: 360,360 (like the B, I, and G columns)

Note: nPr is the Permutation function n!/(n-r)!, sometimes labeled PERM or (n r) shown vertically. Simply put, permutation means arrangement: "How many ways can we arrange r out of n objects?


Since each of the permutations of B column can have each of the permutations of the I column; which in turn, each of those permutations can contain each permutation of the N column, and so on; the number of total number of bingo boards is:

360,360 * 360,360 * 32,760 * 360,360 * 360,360
= 360,360^4 * 32,760
= 552,446,474,061,128,648,601,600,000
≈ 5.52446 x 10^26

We can get the number of different cards by using rows as well.
1st Row: 15 * 15 * 15 * 15 * 15 = 15^5 =759,375 (15 numbers available per column)
2nd Row: 14 * 14 * 14 * 14 * 14 = 14^5 = 537,824 (14 numbers available per column)
3rd Row: 13 * 13 * 1 * 13 * 13 = 28,561 (don't forget about the Free space)
4th Row: 12 * 12 * 13 * 12 * 12 = 269,568
5th Row: 11 * 11 * 10 * 11 * 11 = 175,692

And the number of cards is:
759,375 * 537,824 * 28,561 * 269,568 * 175,692
= 552,446,474,061,128,648,601,600,000
≈ 5.52446 x 10^26

We arrived at the same destination.

What The Odds of Having a Winning Card in Bingo?

Even though there are 2,0711,126,800 ways to pick 5 numbers out of 75; thus making you very lucky to get a Bingo if the you win after just five draws.

Despite this, we look at the number of cards that are played in the game rather than the numbers themselves when answering this question.

So instead of having a long calculation, which I once thought was the case, the odds of having the winning card boils down to this:

1/(number of cards in play)

This is true if you are playing BINGO by a line or blackout bingo.

Don't forget to you yell BINGO! when you win. :)


Have a great day! Now I am off to errands and maybe wrap some presents.

Eddie


This blog is property of Edward Shore. 2014 


P.S. I am going to make it one of my resolutions to check on the comments timely.  I appreciate and thank everyone who leaves a comment.   - Eddie (12/15/14)



Thursday, December 11, 2014

Annie Jump Cannon


Google dedicated their home page to Annie Jump Cannon today. The Henry Draper Award winner classified and observed 500,000 stars, while breaking ground for women in science.

She also has a crater named after her on our Moon, and her stellar classification is standard (as determined by the IAU).

http://en.m.wikipedia.org/wiki/Annie_Jump_Cannon



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

HP 15C: The I Squared Rule and HHC 2026

HP 15C: The I Squared Rule and HHC 2026 HHC 2026 Videos Before we start, the videos for HHC 2026 are up! Please take a look, ev...