Skip to content

Rj/refine atan2#209

Merged
bors[bot] merged 2 commits intomasterfrom
rj/refine-atan2
Dec 20, 2020
Merged

Rj/refine atan2#209
bors[bot] merged 2 commits intomasterfrom
rj/refine-atan2

Conversation

@jordens
Copy link
Member

@jordens jordens commented Dec 20, 2020

asm

* use dynamic scaling of the inputs to get accurate ratios (effectively
  floating point) to maintain accuracy for small arguments
* this also allows shifting later and keep more bits
* use u32 ratio to keep one more bit
* merge the corner case unittests into the big test value list
* print rms, absolute and axis-relative angle
* simplify the correction expression to get rid of one multiplication
* use 5 bit for the correction constant and 15 bits for r
* least squares optimal correction constant, this lowers the max error
  below 5e-5
@jordens
Copy link
Member Author

jordens commented Dec 20, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 20, 2020

Build succeeded:

@bors bors bot merged commit 40e12e8 into master Dec 20, 2020
@bors bors bot deleted the rj/refine-atan2 branch December 20, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant