HP Forums

Full Version: New Blog Entry: Fun with the HP 12C
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Great entry Eddie! Love to see the 12c working in all sorts of areas.

Consider sharing on your blog some of the game programs for the 12c found here too.

12c document
More fun with the HP-12C: HP-12C’s Serendipitous Solver
Valentin doesn't even need to sign his work. Tanquam ex ungue leonem.
Thank you so much guys! My next blog entry is a compilation featuring the three links suggested and two more: HP 12C Games and Black-Scholes.

Link: http://edspi31415.blogspot.com/2014/10/h...olver.html
Combining both of Valentin's ideas we can define the Taylor series of sin:

0 CF0
1 CFj
x<>y CFj x<>y
2 CHS ÷ 3 ÷ CFj
x<>y CFj x<>y
4 CHS ÷ 5 ÷ CFj
x<>y CFj x<>y
6 CHS ÷ 7 ÷ CFj
(...)
x<>y CFj x<>y
12 CHS ÷ 13 ÷ CFj


Then we can use this short program to calculate sin(x):
Code:
1/x
1
x<>y
Δ%
STO i
NPV

Cheers
Thomas
(10-28-2014 04:45 AM)Thomas Klemm Wrote: [ -> ]Then we can use this short program to calculate sin(x):
Code:
1/x
1
x<>y
Δ%
STO i
NPV

Thomas - There must be something missing in your code... It sure doesn't work for me, either by entering the angle in degrees or radians.

Jeff K
This is another way to enter the coefficients:

0 CF0
1 CFj
0 CFj
3 n! 1/x CHS CFj
0 CFj
5 n! 1/x CFj
0 CFj
7 n! 1/x CHS CFj
0 CFj
9 n! 1/x CFj
0 CFj
11 n! 1/x CHS CFj
0 CFj
13 n! 1/x CFj


You can use RCL CFj to check your entries. The index n will go down from 13 to 0. Just make sure to set n to 13 again!

This is the program as numeric codes:
Code:
01-     22
02-      1
03-     34
04-     24
05-  44 12
06-  42 13

These are some examples:

0.1 R/S
0.09983341665

0.2 R/S
0.1986693308

1 R/S
0.8414709848

3.141592654 ENTER 6 ÷
0.5235987757
R/S
0.5000000000


HTH
Thomas

PS: All angles are in radians.
Edit: Added a Nonpareil state file.
With this program the function sin-1 can be calculated. Just use the same entries for the coefficients as before for sin.

Code:
01-     16   CHS
02-   44 0   STO 0
03-  42 15   IRR
04-      1   1
05-     34   x<>y
06-     25   %
07-     40   +
08-     22   1/x

Examples:

0.1 R/S
0.1001674212

0.2 R/S
0.2013579208

0.5 R/S
0.5235987756
6 ×
3.141592654

0.5 √x
0.7071067812
R/S
0.7853981632
4 ×
3.141592653


Cheers
Thomas
Reference URL's