close

I'm working with this table:H/W0.250.50.7511.5
Angle
200.080.080.080.070.07
300.180.170.170.160.15
450.380.370.360.340.33
600.60.590.570.550.52
750.890.870.840.810.77
901.31.31.21.21.1

I'm trying to develop a formula which will interpolate a value for when
I'm in between numbers. For example, if my angle is 25 degrees, and my
H/W is 1.25, then I would get 0.1125. There's gotta be a way to do
this. Any suggestions?--
israelica
------------------------------------------------------------------------
israelica's Profile: www.excelforum.com/member.php...oamp;userid=31657
View this thread: www.excelforum.com/showthread...hreadid=513444I have imported your data and plotted it to see what function they fit
to nicely. It seems that the best match is the quadratic that goes
through 0, i.e. f(x)=ax^2 bx, where x is the angle. The problem is that
a and b change with H/W, therefore we will assume a linear change of
both a and b with H/W. We thus seek to find another function:

f(x,y)=(ay b)x^2 (cy d)x, where x is angle and y is H/W.

We will use the Solver to find a, b, c and d with the Least Squares
method.

Use four cells, say A1212 to hold a, b, c and d. Initially you can
set them to 0.

Copy the entire data set to the right. Start from I1. Erase the values
and enter the following formula in place of the first 0.08 of the
copied data:

=($A$12*I$1 $B$12)*$H3^2 ($C$12*I$1 $D$12)*$H3

Copy over the previously copied data.

In yet another area of the same dimensions, use a formula to calculate
the square error between your data and the estimated function:

=(B3-I3)^2

Copy this accross and down as far as the data area. Then produce the
sum of all these cells in yet another cell, say, M18. Now issue the
Solver:

Tools|Solver (if it does not appear in Tools menu, first Tools|Add
Ins... and choose SOlver Add in).

Set target cell: M18
By Changing cells: A1212
Solve

When you solve, A1212 will get the values of the above expression. In
my run they produced the following:

f(Angle, HW) =
(-0.0000199600635287658*HW 0.00014782591576092)*Angl e^2 (0.000025289182495776*HW 0.00153502941872466)* Angle

Now, by supplying whatever values you want for Angle and H?W you can
get the interpolated value.

Does this help?

Kostis Vezerides

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()