Post Reply 
New guy and programming problem
09-01-2018, 12:23 PM
Post: #27
RE: New guy and programming problem
(08-28-2017 06:13 PM)Dieter Wrote:  On a 10-digit machine this already happens for 89,9995°...90,0005°.

We can use this difference-to-product formula to calculate e.g. \(1-\sin(89.9995°)=\sin(90°)-\sin(89.9995°)\):

\(\sin \theta - \sin \varphi =2\sin \left({\frac {\theta - \varphi }{2}}\right)\cos \left({\frac {\theta + \varphi }{2}}\right)\)

And then since \(\theta = \frac{\pi}{2}\) we can set \(\varepsilon = \frac {\theta - \varphi }{2}\) and use \(\cos \left({\tfrac {\pi }{2}}-\varepsilon \right)=\sin \varepsilon\) and end up with:

\(1 - \sin \varphi =2\sin^2 \varepsilon\)

Thus we set \(\theta=90\) and \(\varphi=89.9995\) and get:

90
ENTER
89.9995
-
2
÷
SIN

2
×

3.807717748e-11


(Calculated using an HP-41.)

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New guy and programming problem - Thomas Klemm - 09-01-2018 12:23 PM
RE: New guy and programming problem - sasa - 09-01-2018, 03:18 PM
RE: New guy and programming problem - sasa - 09-01-2018, 05:33 PM



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