Saturday, February 1, 2025

TI-84 Plus CE and DM42: RLC Circuits

TI-84 Plus CE and DM42: RLC Circuits


The program RLC calculates:


(1) The total impedance across the entire circuit

(2) The phase angle, sometimes known as a power factor angle

(3) The total supply current


An RLC circuit is a circuit that connects one power supply to a resistor, an inductor, and a capacitor. The resistor, inductor, and capacitor can be connected in one of two ways: series or parallel. To calculate the total impedance (Z) and phase angle (θ), the rectangular to polar conversion function can be utilized.


In a general rectangular to polar conversion, (x, y) to (r, θ):

r = √(x^2 + y^2)

θ = arctan(y / x)


Formulas


Angular Frequency: ω = 2 * π * F


F = frequency in Hz

V = supply voltage (volts)

R = resistor in Ω (ohms)

L = inductor in H (henrys)

C = capacitance (farads)

I = overall current (amps)

Series RLC Circuit - Formulas


Z = √(R^2 + (ω*L – 1 / (ω*C))^2)

θ = arctan ( (ω*L – 1 / (ω*C)) / R)

I = V / Z

Series RLC Circuit – Set up for Rectangular to Polar Conversion


x = ω*L – 1 / (ω*C)

y = R


Z = r

Parallel RLC Circuit - Formulas


1 / Z = √( (1/R)^2 + (1/(ω*L) – ω*C)^2)

θ = arctan ( (1/(ω*L) – ω*C) / (1/R))

I = V / Z

Parallel RLC Circuit – Set up for Rectangular to Polar Conversion


x = 1/(ω*L) – ω*C

y = 1/R


Z = 1/r


TI-84 Plus Program: RLC


ClrHome

Disp “RLC CIRCUIT”

Input “SUPPLY VOLTAGE? “, V

Input “FREQUENCY (HZ)? “, F

Input “RESISTANCE (OHMS)? “, R

Input “INDUCTOR (HENRYS)? “, L

Input “CAPACITOR (FARADS)? “, C

a+bi

Degree

2*π*F → W

Menu(“TYPE”, “SERIES”, 1, “PARALLEL”, 2)


Lbl 1

R+i*(W*L-1/(W*C)) → Z

abs(Z) → N

Goto 3


Lbl 2

(1/R)+i*(1/(W*L)-W*C) → Z

abs(Z)⁻¹ → N


Lbl 3

angle(Z) → θ

V/N → I


ClrHome

Disp “IMPEDANCE:”, N

Disp “PHASE ANGLE:”, θ

Disp “SUPPLY CURRENT:”, I



DM42, HP 42S Program: RLC


00 { 216-Byte Prgm }
01▸LBL "RLC"
02 "SUPPLY VOLTAGE?"
03 PROMPT
04 STO 01
05 "FREQUENCY?"
06 PROMPT
07 STO 02
08 "RESISTANCE?"
09 PROMPT
10 STO 03
11 "INDUCTOR?"
12 PROMPT
13 STO 04
14 "CAPACITOR?"
15 PROMPT
16 STO 05
17 DEG
18 2
19 STO 06
20 PI
21 STO× 06
22 RCL 02
23 STO× 06
24 "TYPE?"
25 AVIEW
26 PSE
27 "SERIES"
28 KEY 1 GTO 01
29 "PARA."
30 KEY 2 XEQ 02
31 MENU
32▸LBL 00
33 STOP
34 GTO 00
35▸LBL 01
36 CLMENU
37 EXITALL
38 RCL 06
39 RCL× 04
40 RCL 06
41 RCL× 05
42 1/X
43 -
44 RCL 03
45 →POL
46 STO 07
47 GTO 03
48▸LBL 02
49 CLMENU
50 EXITALL
51 RCL 06
52 RCL× 04
53 1/X
54 RCL 06
55 RCL× 05
56 -
57 RCL 03
58 1/X
59 →POL
60 1/X
61 STO 07
62▸LBL 03
63 "PHASE:"
64 AVIEW
65 PSE
66 VIEW ST Y
67 STOP
68 "IMPEADANCE:"
69 AVIEW
70 PSE
71 VIEW ST X
72 STOP
73 RCL 01
74 RCL÷ 07
75 "SUPPLY CURRENT:"
76 AVIEW
77 PSE
78 VIEW ST X
79 .END.


Examples


Examples are rounded to five digits.



Series Circuit


Inputs:


SUPPLY VOLTAGE: 300 V

FREQUENCY: 70 Hz

RESISTANCE: 80 Ω

INDUCTOR: 0.09 H

CAPACITOR: 150 μF (150E-6)


Results:


IMPEDANCE (Z) ≈ 83.64599 Ω

PHASE ANGLE (θ) ≈ 16.97904°

CURRENT (I) ≈ 3.58654 A



Parallel Circuit


Inputs:


SUPPLY VOLTAGE: 240 V

FREQUENCY: 90 Hz

RESISTANCE: 60 Ω

INDUCTOR: 20 mH (20E-3)

CAPACITOR: 140 μF (140E-6)


Results:


IMPEDANCE (Z) ≈ 52.46010 Ω

PHASE ANGLE (θ) ≈ 29.05363°

CURRENT (I) ≈ 4.57491 A



Sources



“Impedance and Complex Impedance” https://www.electronics-tutorials.ws/accircuits/impedance.html


“Parallel RLC Circuit Analysis” https://www.electronics-tutorials.ws/accircuits/parallel-circuit.html


“Series RLC Circuit Analysis” https://www.electronics-tutorials.ws/accircuits/series-circuit.html


Electronics Tutorials. AspenCore, Inc. 2024. Retrieved October 7, 2024 and October 17, 2024.



Eddie


All original content copyright, © 2011-2025. 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, January 25, 2025

Casio fx-991CW: The Spreadsheet

Casio fx-991CW: The Spreadsheet



Welcome to the Casio fx-991CW segment, which is planned to be every last Saturday of the month for 2025!



Spreadsheet


Screenshots are used the classpad.net website which contains the fx-991CW emulator.


The Casio fx-991CW has a Spreadsheet mode. The spreadsheet is 45 rows and 5 columns. The spreadsheet has a memory capacity of 2,380 bytes. The spreadsheet has basic spreadsheet functions. Data is saved as long as the calculator is in the Spreadsheet mode. Individual results can be stored in the calculator’s memory registers A, B, C, D, E, F, x, y, and z.


The spreadsheet of the fx-991CW can only contain numerical data. There are no labels.


Auto Calc is assumed to be on.


fx-991CW:  Selection of the Spreadsheet mode



Sum, Mean, and Count of a Range of Cells


The sum of a range: = Sum( α# : β# )

The arithmetic mean of all the numbers in a range: = Mean( α# : β# )

The count of all cells that have a value stored: = Sum( α# : β# ) ÷ Mean( α# : β# )


The count has to be constructed because there is no count function in the fx-991CW. Since Sum is Σx and Mean is Σx / n. Hence count, or n, is: Count = Sum / Mean = Σx / (Σx / n) = Σx * (n / Σx) = n.


The Sum, Count, and the colon character ( : ) are found in the Catalog.


The Catalog key in the Spreadsheet mode

Example:



A

B

1

45

88

2

25

76

3

93

39


fx-991CW:  Sum, Mean, and Count – Spreadsheet


Min, Max, and Statistical Range of a Range of Cells


The minimum value of a range of cells: = Min( α# : β# )

The maximum value of a range of cells: = Max( α# : β# )

The statistical range of a range of cells: = Max( α# : β# ) - Min( α# : β# )


Example:



A

B

1

45

88

2

25

76

3

93

39


fx-991CW:  Min, Max, and Range - Spreadsheet




Multiply a Range of Cells with a Constant Rate



We can apply a formula to a range of cells through the Tools menu. The Fill Formula dialogue:

Fill Formula

Fill = (start the formula with the cell you are currently at)

Range : α# : β#

> Confirm


To make a cell absolute, attack a dollar sign, to both the column letter and row number. The dollar sign ( $ ) is in the Catalog.


Example:



A

B

1


0.85

2

59.95


3

42.75


4

73.95



fx-991CW:  multiplying a range with a constant



Storing a Cell’s Value


Exiting the Spreadsheet mode or turning the calculator off will erase the contents of the Spreadsheet. A way to store values permanently is to store the cell’s contents in one of the variables (A – F, x, y, z). To store a value:


1. Go to the cell.

2. Press the [ VARIABLE ] button.

3. Select a variable and press [ EXE ].

4. Select Store.


The value is now stored in the variable, which can be used in other modes. Unlike the spreadsheet, values stored in values are kept until a reset.


fx-991CW:  storing a value in a variable



I hope you find this helpful.


Until next time,


Eddie


All original content copyright, © 2011-2025. 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, January 18, 2025

BA-54: Real Estate Programs

BA-54: Real Estate Programs



BA-54:  Chris won this calculator at HHC 2024 and donated it to me.   Much appreciation as always.
BA-54:  Chris won this calculator at HHC 2024 and donated it to me.   Much appreciation as always. 



Background: The Texas Instruments BA-54 is a 1986 update of the BA-55 (not a typo) financial calculator. The BA-54 is a keystroke programming calculator which can hold up to 40 programming steps. However, it’s up to 40 programming steps or up to 5 memory registers (register 1 through 5). Programming mode only occurs in finance mode, though the BA-54 also has a cash flow mode and a statistics (linear regression) mode.


Because steps can add up quickly, limited memory registers are really available. Going beyond step 32 will leave no memory register to work with.


My review of the BA-55 from 2018: http://edspi31415.blogspot.com/2018/02/retro-review-texas-instruments-ba-55.html




APR (Annual Percentage Rate) with Fees


Inputs:

number of payments [ N ]

annual interest rate ÷ 12 = [ %i ]

gross loan amount [ PV ]

points (in %) [ STO ] 1


Operation:

[ 2nd ] (RST) [ R/S ] payment of the loan (PMT, shown as a positive number)

[ R/S ] APR of the rate when fees are considered


APR is based off the net loan amount (gross loan amount – points%)


Code:

KEY

STEP #

KEY CODE

CPT

00

12

PMT

01

23

R/S

02

13

1

03

01

-

04

75

RCL

05

71

1

06

01

%

07

52

=

08

95

×

09

65

RCL

10

71

PV

11

24

=

12

95

PV

13

24

CPT

14

12

%i

15

22

×

16

65

1

17

01

2

18

02

=

19

95

R/S

20

13

RST

21

37


Example


What is true APR on a 20 year loan when the loan amount is 58000 at 6.8% when the loan carries the cost of 3.5 points?


Inputs:

20 [ × ] 12 [ = ] [ N ]

6.8 [ ÷ ] 12 [ = ] [ %i ]

58000 [ PV ]

3.5 [ STO ] 1 (points)


Operation:

[ 2nd ] (RST) [ R/S ] 442.74 (payment)

[ R/S ] 7.26% (APR with points)


The true APR is 7.26%.


Source


Smith, Jon M. Financial Analysis & Business Decisions on the Pocket Calculator. John Wiley & Sons: New York. 1976. pp. 177-178. ISBN 0-471-80184-4



Time and Interest Saved by Paying off a Loan Early


Inputs:

number of payments [ N ]

annual interest rate ÷ 12 = [ %i ]

gross loan amount [ PV ]

points (in %) [ STO ] 1


Operation:

Compute the payment by pressing [ PMT ]. Press [ 2nd ] (RST) [ R/S ].

Result: estimated original interest paid

Enter the new payment [ R/S ]

Result: number of payments with the higher payment [ R/S ]

Result: estimated interest saved


It is assumed that there are no penalties for early payment.


Code:

KEY

STEP #

KEY CODE

RCL

00

71

PMT

01

23

×

02

65

RCL

03

71

N

04

21

-

05

75

RCL

06

71

PV

07

24

=

08

95

STO

09

61

1

10

01

R/S

11

13

PMT

12

23

CPT

13

12

N

14

21

R/S

15

13

×

16

65

RCL

17

71

PMT

18

23

-

19

75

RCL

20

71

PV

21

24

=

22

95

+/-

23

94

SUM

24

81

1

25

01

RCL

26

71

1

27

01

R/S

28

13

RST

29

37



Example


We have a 30-year loan (360 payments) of 176000. The interest rate is 9.6%. If the user pays 1500 a month, how much time and interest are saved?


Inputs:

360 [ N ]

8 ÷ 12 = [ %i ]

176000 [ PV ]


Operation:

[ PMT ] Result: 1291.42

[ R/S ] Total original interest paid: 288913.24

Enter 1500 [ R/S ]

Result: 229.40 (n ≈ 230 payments) [ R/S ]

Result: 120808.27 (interest saved)


By paying 1500 instead of 1291.42, the loan will be paid about 230 payments (19 years, 2 months). Interest saved will be 120808.27.



The Front End Qualification Test


A common method to test whether a potential buyer of a house qualifies is the 28/36 Rule. Simply:


28% of the buyer’s monthly gross income is the maximum amount that the payment with their mortgage with insurance and property taxes (PITI) can be.


36% of the buyer’s monthly gross income is the maximum amount that PITI plus regular monthly debts can be.


The 28% is referred to as the front end test, while the 36% is referred to as the back end test.


The program returns two results: the PITI and difference between 28% of the gross income and PITI. If the difference is positive, the buyer pass the 28% test.


Due to the structure of how memory is set up, I could only fit the front end while being allowed to use 1 additional memory register.


Inputs:

number of payments [ N ]

annual interest rate ÷ 12 = [ %i ]

gross loan amount [ PV ]

monthly tax and property insurance [ STO ] 1

monthly gross income [ STO ] 2


Operation:

Compute the payment by pressing [ PMT ]. Press [ 2nd ] (RST) [ R/S ].

Result: PITI. (principal, interest, taxes, interest).

Press [ R/S ].

Result: Difference between 28% of income minus PITI.


KEY

STEP #

KEY CODE

CPT

00

12

PMT

01

23

+

02

85

RCL

03

71

1

04

01

=

05

95

R/S

06

13

RCL

07

71

2

08

02

×

09

65

2

10

02

8

11

08

%

12

52

-

13

75

RCL

14

71

1

15

01

-

16

75

RCL

17

71

PMT

18

23

=

19

95

R/S

20

13

RST

21

37


Example


A potential buyer wants to finance a house with a 30 year term at 5%. The purchase price of 375000. The estimated monthly property and insurance is 250. The buyer earns a monthly income of 12000. Does the buyer qualify (at least pass the front test (28%))?


Inputs:

30 [ × ] 12 [ = ] [ N ]

5 ÷ 12 = [ %i ]

375000 [ PV ]

250 [ STO ] 1

12000 [ STO ] 2


Operation:

Compute the payment by pressing [ PMT ]. Press [ 2nd ] (RST) [ R/S ].

Result: 2263.08 (principal, interest, taxes, interest).

Press [ R/S ].

Result: 1096.92 (it is positive, so the buyer passes the 28% test)


Source


Probasco, Jim. “What is the 28/36 rule for home affordability?” Bankrate. 09 October 2023, https://www.bankrate.com/real-estate/what-is-the-28-36-rule/ Retrieved October 16, 2024.


Enjoy!


Eddie


All original content copyright, © 2011-2025. 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.


TI-84 Plus CE and DM42: RLC Circuits

TI-84 Plus CE and DM42: RLC Circuits The program RLC calculates: (1) The total impedance across the entire circuit (2) The phase ...