You've Got Mail.........DM42L
|
02-24-2016, 08:17 AM
Post: #30
|
|||
|
|||
RE: You've Got Mail.........DM42L
(02-23-2016 12:07 PM)Paul Dale Wrote: Just committed the range reduction code for the 34S. I kept the 34S's higher precision computation of the trigonometric functions since it supports double precision, although I'm not sure this is actually necessary. Now I can do the two examples with correct rounding. Unless I've made an error converting the code, the 34S should be good for trig now Thanks! One more little tidbit, though: TAN(a) = -TAN(-a) but not for a=1e-4 ... Here a similar range reduction needs to happen (also in Free42 this time). Something like this: (unverified) Code: real function TANDEG(real x) - there is no separate test for 45°, as apparently TANRAD(PI/4) = 1, exactly - the reduction to x<=45° is only done when x>80 so as to not do 1/TAN when it would not be necessary. Cheers, Werner 41CV†,42S,48GX,49G,DM42,DM41X,17BII,15CE,DM15L,12C,16CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)