home *** CD-ROM | disk | FTP | other *** search
- # fitplot([x1,x2,...], [y1,y2,...]) fits and plots [y1,y2,...] into a
- # straight line of a+b*x
- # e.g. fitplot([1,2,3], [1,3/2,2]) plots a straight line and give 0.5+0.5*x
-
- fitplot(xlist_,ylist_) := block(graph, dataplot(xlist,ylist),
- y:=fit(xlist,ylist),
- plot(y,x,min(xlist),max(xlist),min(ylist),max(ylist)),
- y, local(y))
-