Assume I have some data of the distance a car will travel (y) vs the amount of fuel in a car (x). For small amounts of fuel, one would expect the distance y to be linearly related to x. But if a lot of fuel is added, the weight of the fuel would then become significant, and the distance would not increase linearly. So I might have a set of data like
Fuel (x, litres) Distance (y, km) 0 0 10 50 20 100 30 149 40 195 etc I might fit a polynomial using find_fit, of the form. y = a x^2 + b x + c But one obvious fact is that if the amount of fuel is 0, then the car can't go anywhere. It there anyway to fit a curve to some data, but force the fit to go through the point (0,0)? Dave -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
