home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / maj / 4352 / circle.nlr < prev    next >
Text File  |  1993-12-05  |  521b  |  27 lines

  1. Title "Fit circle to group of points";
  2. Variable Xp;            // X coordinate of point
  3. Variable Yp;            // Y coordinate of point
  4. Parameter Xc;            // X position of circle center
  5. Parameter Yc;            // Y position of circle center
  6. Parameter R;            // Radius of circle
  7. Function sqrt((Xp-Xc)^2 + (Yp-Yc)^2) - R;
  8. Data ;
  9. 10.7  14.7
  10. 13.2  12.4
  11. 15.7  14.4
  12. 16.0  11.0
  13. 14.9   8.9
  14. 16.6   8.3
  15. 13.4   6.1
  16. 12.0   3.6
  17.  9.2   5.1
  18.  6.2   4.6
  19.  5.0   7.0
  20.  5.0   8.2
  21.  3.6  10.0
  22.  5.0  10.2
  23.  3.6  11.8
  24.  5.0  14.8
  25.  7.4  14.6
  26.  9.4  16.5
  27.