sine of an angle in degree mode
|
01-29-2018, 06:58 AM
Post: #21
|
|||
|
|||
RE: sine of an angle in degree mode
Hello,
Well, since you guys want "precise" info, I had a look at the source code. grad are converted to deg if needed. The calc has a flag (fix) which tells it if the result is a remarquable value (0° in all modes, n*30° or tan(45) in deg/grad). This flag is also put on entry if 0 is detected. The calc then does a modulo 45 or pi/2, depending, using 31 digits. It then applies cordic, which yeild a x and y pair on the axis of the angle. tan=y/x cos/sin are calculated from tan using 1/sqrt(1+tan()²). Then, if the flag was set, the result is rounded. and this is it. Cheers, Cyrille Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP. |
|||
01-29-2018, 08:26 AM
(This post was last modified: 01-29-2018 08:26 AM by rflesch.)
Post: #22
|
|||
|
|||
RE: sine of an angle in degree mode | |||
01-29-2018, 12:31 PM
Post: #23
|
|||
|
|||
RE: sine of an angle in degree mode
(01-26-2018 10:23 AM)Mike (Stgt) Wrote: For the inquisitive here a compare of the HP-15C firware trace from DEG 360 SIN and 720 SIN. Sorry for my ignorance but, what tools have you used to generate such firmware traces? Thanks & regards. |
|||
01-29-2018, 12:47 PM
(This post was last modified: 01-29-2018 12:53 PM by Massimo Gnerucci.)
Post: #24
|
|||
|
|||
RE: sine of an angle in degree mode
(01-29-2018 12:31 PM)emece67 Wrote:(01-26-2018 10:23 AM)Mike (Stgt) Wrote: For the inquisitive here a compare of the HP-15C firware trace from DEG 360 SIN and 720 SIN. I bet it's running on an IBM mainframe running VM/CMS or z/VM. (or an emulation on Hercules...) Those were the days... Greetings, Massimo -+×÷ ↔ left is right and right is wrong |
|||
01-29-2018, 04:23 PM
Post: #25
|
|||
|
|||
RE: sine of an angle in degree mode
(01-29-2018 02:41 PM)Mike (Stgt) Wrote: Short answer: my own tools. An interesting tale, & not so looong as expected ;-) Thanks & regards. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)