home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / sci / math / symbolic / 3555 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. Path: sparky!uunet!portal!lll-winken!uwm.edu!cs.utexas.edu!torn!utzoo!dciem!hugh
  2. From: hugh@dciem.dciem.dnd.ca (Hugh D. Gamble)
  3. Newsgroups: sci.math.symbolic
  4. Subject: Curve fitting with Maple?
  5. Message-ID: <7007@dciem.dciem.dnd.ca>
  6. Date: 26 Jan 93 22:13:32 GMT
  7. Organization: NTT Systems, Inc., Toronto, Canada
  8. Lines: 29
  9.  
  10. I know there are lots of s/w packages specifically for curve fitting,
  11. and I could whip up a least squares fit algorithm in C and use it, but
  12. what I want to do should be easy to do from Maple, I think, if I knew
  13. how.
  14.  
  15. I want to fit a set of x,y datapoints to a 2nd order polynomial.
  16. There's the interp function that will fit n datapoints to an n-1th
  17. degree polynomial, but I can't see how to tell it to fit to a 2nd
  18. order equation except by just giving 3 datapoints. :-(
  19.  
  20. If I could extract the code from the interp routine, it would probably
  21. be easy to change it to accept the degree as a parameter.
  22.  
  23. I looked at regress from the stats package, but it didn't seem very
  24. useful for this. Maybe it is, but I don't understand the input data
  25. formats?
  26.  
  27. Is interp actually useful for curve fitting, or is it just a freebie
  28. that's there because it was needed internally when drawing pretty
  29. pictures? 
  30.  
  31. Comments? Thanks.
  32.  
  33.  
  34.  
  35. -- 
  36. # Hugh D. Gamble, NTT Systems Inc. (at DCIEM (416) 635-2156) Std. Disclaimers #
  37. # hugh@dciem.dciem.dnd.ca, hugh@kink.PhaedraV.On.Ca                           #
  38. # "automata da vida, honey" - CA Butterfly                                    #
  39.