Showing posts with label HP21S. Show all posts
Showing posts with label HP21S. Show all posts

Saturday, September 15, 2018

HP 20S and HP 21S: Approximating Stopping Distances

HP 20S and HP 21S:  Approximating Stopping Distances 

Introduction

We can approximate the stopping distance (in feet) of a vehicle on dry pavement given the vehicle's speed (in miles per hour, mph) by the formula: 

y = 3.85714285714*10^-2 * x^2 + 1.44504201681 * x + 0.64915966369

or

y = 27/200 * x^2 + 1.44504201681 * x + 0.64915966369

y:  stopping distance on dry pavement, feet
x:  speed of vehicle, mph

Assumptions:

*  The vehicle is assumed to be a passenger vehicle.

*  The reaction time is 1 second and the deceleration rate is 28 ft/s.

The program listed rounds all results to one decimal place.

HP 20S and HP 21S Program: Stopping Distance

The key codes for both calculators are the same in this program.

STEP KEY    KEY CODE
01   LBL B  61, 41, b
02   STO 0  21, 0
03   x^2    51, 11
04   ×      55
05   2      2
06   7      7
07   ÷      45
08   7      7
09   0      0
10   0      0
11   +      75
12   RCL 0  22, 0
13   ×      55
14   1      1
15   .      73
16   4      4
17   4      4
18   5      5
19   0      0
20   4      4
21   2      2
22   0      0
23   1      1
24   6      6
25   8      8
26   1      1
27   +      75
28   .      73
29   6      6
30   4      4
31   9      9
32   1      1
33   5      5
34   9      9
35   6      6
36   6      6
37   3      3
38   9      9
39   =      74
40   STO 1  21, 1
41   FIX 1  51, 33, 1
42   RTN    61, 26

Examples

Input:  25 mph,  Result:  60.9 ft

Input:  40 mph,  Result:  120.2 ft

Input:  65 mph,  Result:  257.5 ft

Note:  This time I am writing this blog entry direct in the Blogger compose box.  When I transfer text from either Jarte or WordPad to Blogger, all the formatting is lost.  And I don't want to format my text twice.  I will still save a backup copy.  I am very happy that Blogger compose box allows me to select special characters for the math symbols I need (the happy face is appropriate because it makes me happy!) 

Source:  

Glover, Thomas J.  Pocket Ref 4th Edition.  Sequoia Publishing, Inc. Littleton, CO. 2012

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.



HP 20S and HP 21S: Rounding Numbers

HP 20S and HP 21S:  Rounding Numbers

Introduction

The following program will allow the user to round any positive number to any number of decimal places, regardless of fixed decimal settings. 

This is based off the algorithm:

x_rounded = int(10^n * x + 0.5) ÷ 10^n

Note:  You can check out the programs for the HP 12C and DM 41L/HP 41C here:  
http://edspi31415.blogspot.com/2018/08/hp-12c-platinum-and-dm-41l-rounding.html

HP 20S and HP21S Program: Rounding Numbers

Key codes for both calculators are the same.

Step Key Key Code
01 LBL C 61, 41, C
02 10^x 51, 12
03 STO 0 21, 0
04 SWAP 51, 31
05 × 55
06 RCL 0 22, 0 
07 + 75
08 . 73
09 5 5
10 = 74
11 IP 51, 45
12 ÷ 45
13 RCL 0 22, 0
14 = 74
15 RTN 61, 26

Instructions

Enter x, press [INPUT], enter n (number of decimal places)

Examples

For these examples, I have set the calculator in ALL setting ( [right shift], [ ) ] )

Example 1:  Round π to 4 places.

π [ INPUT ] 4  [XEQ] (C)

Result:  3.1416

Example 2:  Round e^2.2 to 6 places

2.2 [e^x] [INPUT] 6 [XEQ] (C)

Result:  9.025013

Note:  I typed this blog entry by using the Jarte word processor (http://www.jarte.com/index.html).  I am using the free version for the first time (there is also a paid version). Jarte is based off of WordPad, but adds spell check and nicer editing features.  

Source:

Keith Oldham, Jan Myland, and Jerome Spanier  An Atlas of Functions Second Edition,  Springer.  2009 ISBN 978-0-387-48806-6

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.

Casio fx-4000P: Antennas

Casio fx-4000P: Antennas Vertical and Horizontal Bandwidth Given the height (h) and length (l) of an antenna plate, along with w...