Commit 28ffa1a
committed
Improve the accuracy of the degree unit.
Currently the factor of a the base radian unit is hard coded with
accuracy to 9 signigicant digits. This changes to computing the factor
from the variable `$PI` defined in `Units.pm` to be `4 atan2(1, 1)`
which gives as good of accuracy as can be obtained (seems to be 15
significant digits of accuracy).
I have seen propogation of rounding error occur too frequently with the
current estimate. That of course can still happen, but this makes it
better at least.1 parent c50623b commit 28ffa1a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments