Sunday, August 26, 2018

HP 12C Platinum: Cosine of an Angle


HP 12C Platinum:  Cosine of an Angle

Introduction

This is a fairly short program of an angle.  The angle is in radians.  This is adapted from the TI-84 Plus COSRAD program from the book Inside Your Calculator (see Source section below).

HP 12C Platinum Program:  Cosine of an Angle

The angle is entered in radians.  This program can be adopted for the regular HP 12C.

Step
Key Code
Key
Comment
001
44, 0
STO 0
Begin program
002
2
2

003
21
y^x
You could use x^2 on the Platinum
004
4
4

005
2
2

006
9
9

007
4
4

008
9
9

009
6
6

010
7
7

011
2
2

012
9
9

013
6
6

014
10
÷

015
44, 1
STO 1

016
1
1
Set counter
017
6
6

018
44, 2
STO 2

019
4
4
Loop begins
020
45, 1
RCL 1

021
30
-

022
45, 1
RCL 1

023
20
*

024
44, 1
STO 1

025
1
1

026
44, 30, 2
STO- 2
Decrease counter
027
45, 2
RCL 2

028
43, 35
x=0

029
43, 33, 031
GTO 031

030
43, 33, 019
GTO 019

031
1
1

032
45, 1
RCL 1

033
2
2

034
10
÷

035
30
-

036
43, 33, 000
GTO 000


Examples (FIX 6 setting):

cos 0.445 ≈ 0.902611
cos 2 ≈ -0.416147
cos -4.180 ≈ -0.507593
cos π/6 ≈ cos 0.523599 ≈ 0.866025

Source:

Gerald R. Rising.  Inside Your Calculator:  From Simple Programs to Significant Insights  Wiley-Interscience, John Wiley & Sons, Inc: Hoboken, New Jersey.  2007. ISBN 978-0-470-11401-8

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-CG50: Sparse Matrix Builder

Casio fx-CG50: Sparse Matrix Builder Introduction The programs can create a sparse matrix, a matrix where most of the entries have zero valu...