Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 17366

Re: CPU radian-based calculation

$
0
0

example of error was printed as follows,

 

=sin(radians(X))+sin(radians(X+120))+sin(radians(X+240))

calculated with cell A2- (repeated autofill) as X value on OpenOffice 4.01/Windows 7Pro 64bit

 

0-3600 degree (0.1 increment), 3600-5800 (1 increment) 5800-6400 (2 increment) 6400-7000 (5 increment)

error occurs mainly at around 150, 300, 450, 600, 750, 900 ...

1800-3600, 3600-above shows similar patterns, although above 3600 degree shows wider error ranges.

 

radian-calc.png

thus error occurs -1800 angle degree on certain value ranges (though fifth and sixth peaks are wider than else). Wider error starts from 1800 angle degree to 3600 and appearance of error came spread.

Same pattern could be obtained with AMD chipset (athlon tested), and Excel. I have no RISC-based unix nor 68-based Apple-PC, I could not test the situation differences.

 

このメッセージは次により編集されています:  Yoshihisa Okamoto As Kevin wrote below, I have re-calculated 0-1440 degrees (1 increment) in OpenOffice.org (Win7 64 bit), with orginal sin(radians()) way. dot blue : sin(radians(x))+sin(radians(x+120))+sin(radians(x+240)) dot orange : sin(x*PI/180)+sin((x+120)*PI/180)+sin((x+240)*PI/180) where x is A2 to A1442 (value 0 to 1440) the result: orange is worse than blue, thus radian exchange is not equal in radians formula to PI/180 on CPU loading because the results are different (attached sin_recalc.png).


Viewing all articles
Browse latest Browse all 17366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>