HP Forums
New Blog Entry: Fun with the HP 12C - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: New Blog Entry: Fun with the HP 12C (/thread-2329.html)



New Blog Entry: Fun with the HP 12C - Eddie W. Shore - 10-24-2014 03:41 AM

http://edspi31415.blogspot.com/2014/10/fun-with-hp-12c.html


RE: New Blog Entry: Fun with the HP 12C - Gene - 10-24-2014 05:03 PM

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


RE: New Blog Entry: Fun with the HP 12C - Thomas Klemm - 10-25-2014 04:05 PM

More fun with the HP-12C: HP-12C’s Serendipitous Solver



RE: New Blog Entry: Fun with the HP 12C - d b - 10-25-2014 04:15 PM

Valentin doesn't even need to sign his work. Tanquam ex ungue leonem.


RE: New Blog Entry: Fun with the HP 12C - Eddie W. Shore - 10-28-2014 02:06 AM

Here is part II:

http://edspi31415.blogspot.com/2014/10/more-fun-with-hp-12c-sine-cosine-error.html


RE: New Blog Entry: Fun with the HP 12C - Jeff_Kearns - 10-28-2014 02:42 AM

Tried and True Trigonometrics


RE: New Blog Entry: Fun with the HP 12C - Eddie W. Shore - 10-28-2014 03:41 AM

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/hp-12c-games-its-history-and-solver.html


RE: New Blog Entry: Fun with the HP 12C - Thomas Klemm - 10-28-2014 04:45 AM

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


RE: New Blog Entry: Fun with the HP 12C - Jeff_Kearns - 10-28-2014 10:31 PM

(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


RE: New Blog Entry: Fun with the HP 12C - Thomas Klemm - 10-29-2014 12:42 AM

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.


RE: New Blog Entry: Fun with the HP 12C - Thomas Klemm - 10-31-2014 09:31 PM

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