sin(x) & cos(x) for x = 10²² in radians
|
10-06-2023, 03:19 PM
Post: #39
|
|||
|
|||
RE: sin(x) & cos(x) for x = 10²² in radians
(10-06-2023 08:40 AM)J-F Garnier Wrote: Actually, the Saturn machines are using the PI/4 constant with 31 digits. Thanks for the info. I still think code somehow adjusted stored 31-digits pi/4 (error ≈ -1/4 ULP) Otherwise, it cannot match HP71B SIN(x) signatures. HP71B Wrote:>for i=21 to 30 @ sin(10^i) @ next i 32 digits of pi, it mached them all. Quote:C:\> seq 21 30 | rpn pi =-32 2x st [ 10 $ pow dup rt / f rt x - sin ?12 k 31 digits of pi/4 (= 32 digits of pi, error = -1 ULP), no match: Quote:C:\> seq 21 30 | rpn pi 4/ =-31 8x st [ 10 $ pow dup rt / f rt x - sin ?12 k Note: "[ ..." means setup a pipe, i → round(sin(remainder(10^i, t ≈ 2*pi)), -12) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)