WP-32S in 2016?
|
01-12-2016, 12:27 AM
Post: #70
|
|||
|
|||
RE: WP-32S in 2016?
(01-12-2016 12:08 AM)matthiaspaul Wrote: Regarding 1-cos(x), I recommend to implement not just the versine but the whole set of missing trigonometric functions I'd say the first four (and ther inverses) are sufficient. ;-) That's the versine, vercosine, coversine and covercosine. This way 1±sin(x) and 1±cos(x) can be calculated exactly. (01-12-2016 12:08 AM)matthiaspaul Wrote: By the way, the above mentioned floating-point standards also recommend new variants of trigonometric functions related to factors of pi (@ recommended by IEEE, the others are supported by Oracle). So do I ("..a sin(x*pi) function that returns exact results for integer fractions of Pi"). ;-) But a complete function set would include both trig(pi*x) and trig(pi/x) functions. Think of arguments like pi/3 or 2/3*pi which cannot be expressed exactly, neither in base-2 nor base-10 representation – 0,3333333333*pi is not pi/3. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)