home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / sci / math / stat / 2122 < prev    next >
Encoding:
Text File  |  1992-10-13  |  1.3 KB  |  33 lines

  1. Newsgroups: sci.math.stat
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsc!cbfsb!cbnewsf.cb.att.com!rizzo
  3. From: rizzo@cbnewsf.cb.att.com (anthony.r.rizzo)
  4. Subject: least squares fit to function
  5. Message-ID: <1992Oct13.151606.8435@cbfsb.cb.att.com>
  6. Sender: news@cbfsb.cb.att.com
  7. Organization: AT&T
  8. Date: Tue, 13 Oct 1992 15:16:06 GMT
  9. Lines: 22
  10.  
  11. Some time ago, I asked for net-wisdom on the subject of constrained
  12. least squares.  Many of you responded, letting me know that I was
  13. on track.  First, let me thank all those who responded.  I've since
  14. written my own little program to do constrained least square fits
  15. of n-degree polynomials.  But now I have a slightly off-the-wall
  16. question for you.  Read on. ;-)
  17.  
  18. Given some explicitely defined function g(x), say, g(x) = sin(x),
  19. can the method of least square errors be applied such that
  20. we derive a second function f(x) = a0 + a1*x + a2*x^2 + ... + an*x^n  
  21. where f(x) is the best least squares fit to g(x)?
  22.  
  23. I know that this request sounds strange.  But I have a legitimate
  24. application.  The application software that I'm using, ANSYS, 
  25. forces me to input certain quantities as polynomial functions
  26. of temperature.  So I can't get around using a polynomial.
  27. Given this restriction, I at least want to use a best-fit polynomial.
  28.  
  29. Has anyone ever heard of this being done before?
  30.  
  31. Tony Rizzo
  32.  
  33.