Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16614
| From | Alexandra Lipson <lipson.alexandra@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | FindFit and LeastSquares |
| Date | 2014-03-08 07:44 +0000 |
| Message-ID | <lfehp1$5lv$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
Hello All,
I have an assignment to use Linear Least Squares to determine the orbital
parameters given the following observations as (x,y)
coordinates: (1.02,.39), (.95,.32), (.87,.27), (.77,.22), (.67,.18),
(.56,.15), (.44,.13), (.30,.12), (.16,.13), (.01,.15). I am asked to plot
the resulting orbit for the given data points.
Here is what I have been playing with:
a1 = {{1.02, .39}, {.95, .32}};
b1 = {{.87, .27}, {.77, .22}};
c1 = {{.67, .18}, {.56, .15}};
d1 = {{.44, .13}, {.3, .12}};
e1 = {{.16, .13}, {.01, .15}};
r = ListPlot[{a1, b1, c1, d1, e1}]
points = {{a1}, {b1}, {c1}, {d1}, {e1}};
data = {{1.02, .39}, {.95, .32}, {.87, .27}, {.77, .22}, {.67, .18}, {.56, \
.15}, {.44, .13}, {.3, .12}, {.16, .13}, {.01, .15}}
model = a*y^2 + b*x*y + c*x + d*y + e - x^2
FindFit[data, model, {a, b, c, d, e}, {x, y}]
l = LeastSquares[{a1, b1, c1, d1, e1},_]
I've been getting the error that FindFit is not a list or a rectangular
array, among others.
I was wondering you have any suggestions.
Thanks!
Alexandra Lipson
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar
FindFit and LeastSquares Alexandra Lipson <lipson.alexandra@gmail.com> - 2014-03-08 07:44 +0000 Re: FindFit and LeastSquares Costa Bravo <q13a27tt@aol.com> - 2014-03-10 08:40 +0000
csiph-web