hexagon logo

GD&T Position - Actual Value Approximation

There was recently a post in the main PC-DMIS forum that discussed position formulae, namely 2D Cartesian and polar position. The post can be found at https://www.pcdmisforum.com/forum/pc-dmis-enterprise-metrology-software/pc-dmis-for-cmms/489117-true-position-formulas

proposed an interesting approximation of the actual value - You consider the two deviations from nominal, double the largest and add half the smallest. This works as an approximation to the actual value obtained using squares and square roots and it works pretty well until the deviations start to approach the same value. In the event that they are the same, the error in the approximation is about 33% of the largest deviation.

I was interested in the approximation scheme so I dug a little deeper and I found a "better" approximation. It is better in the sense that the largest error is only about 9% of the largest deviation. It is worse in the sense that it is not quite as simple, but it at least follows the same format. In my approximation, you multiply the largest deviation by 1.910 and add 0.828 times the smallest (instead of 2 and 0.5).

I wrote a short paper that goes through some of the mathematics if anybody is interested.

Position Approximations.pdf
Parents
  • Very good question. Without spending much time on the actual calculations, I have asked the computer to find the intersections of the absolute error curves. It looks like the optimized approximation yields more error if k is between 0 and approx. 0.077, as well as if k is between approx. 0.274 and 0.653. Thus, the optimized approximation is only better for about 55% of input values.

    If I were to implement this, I would probably use the original approximation until k > 0.65 or so, as this will help rectify the large error as Delta y begins to approach Delta x.

    Attached is a graph of the absolute error curves together. The updated scheme is in red, the original in blue.

    Looking at the two together, you can see that applying a horizontal shift to the updated scheme may help to increase the range in which the updated approximation has less error, but you will be adding to the overall error as Delta y approaches Delta x.

  • If I recall correctly in gnuplot you can program it to export straight to your clipboard (or anything for that matter). I used gnuplot during college, I just love CLI applications (I think there's a version with a GUI if CLI is not your thing). I use Emacs org-mode when writing LaTex, it helps out a bunch and a half. The structure of org-mode just makes me happy and keeps my thoughts organized.
Reply
  • If I recall correctly in gnuplot you can program it to export straight to your clipboard (or anything for that matter). I used gnuplot during college, I just love CLI applications (I think there's a version with a GUI if CLI is not your thing). I use Emacs org-mode when writing LaTex, it helps out a bunch and a half. The structure of org-mode just makes me happy and keeps my thoughts organized.
Children
No Data