Post Reply 
New Blog Entry: Fun with the HP 12C
10-24-2014, 03:41 AM
Post: #1
New Blog Entry: Fun with the HP 12C
http://edspi31415.blogspot.com/2014/10/f...p-12c.html
Visit this user's website Find all posts by this user
Quote this message in a reply
10-24-2014, 05:03 PM
Post: #2
RE: New Blog Entry: Fun with the HP 12C
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
Find all posts by this user
Quote this message in a reply
10-25-2014, 04:05 PM
Post: #3
RE: New Blog Entry: Fun with the HP 12C
More fun with the HP-12C: HP-12C’s Serendipitous Solver
Find all posts by this user
Quote this message in a reply
10-25-2014, 04:15 PM
Post: #4
RE: New Blog Entry: Fun with the HP 12C
Valentin doesn't even need to sign his work. Tanquam ex ungue leonem.
Find all posts by this user
Quote this message in a reply
10-28-2014, 02:06 AM
Post: #5
RE: New Blog Entry: Fun with the HP 12C
Here is part II:

http://edspi31415.blogspot.com/2014/10/m...error.html
Visit this user's website Find all posts by this user
Quote this message in a reply
10-28-2014, 02:42 AM
Post: #6
RE: New Blog Entry: Fun with the HP 12C
Tried and True Trigonometrics
Find all posts by this user
Quote this message in a reply
10-28-2014, 03:41 AM
Post: #7
RE: New Blog Entry: Fun with the HP 12C
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
Visit this user's website Find all posts by this user
Quote this message in a reply
10-28-2014, 04:45 AM (This post was last modified: 10-28-2014 06:13 AM by Thomas Klemm.)
Post: #8
RE: New Blog Entry: Fun with the HP 12C
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
Find all posts by this user
Quote this message in a reply
10-28-2014, 10:31 PM
Post: #9
RE: New Blog Entry: Fun with the HP 12C
(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
Find all posts by this user
Quote this message in a reply
10-29-2014, 12:42 AM (This post was last modified: 10-29-2014 07:57 AM by Thomas Klemm.)
Post: #10
RE: New Blog Entry: Fun with the HP 12C
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.


Attached File(s)
.zip  sin.zip (Size: 828 bytes / Downloads: 2)
Find all posts by this user
Quote this message in a reply
10-31-2014, 09:31 PM
Post: #11
RE: New Blog Entry: Fun with the HP 12C
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
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)