Hi All,
I am using linest function to get coefficient of 2nd order polynomial {y = (c2*x^2)+(c1*x) + c0 } for the following variable,
[TABLE="width: 128"]
<colgroup><col width="64"><col width="64"></colgroup><tbody>[TR]
[TD="class: et1, width: 64"]250[/TD]
[TD="class: et2, width: 64"]1.3 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]500[/TD]
[TD="class: et2, width: 64"]3.8 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]750[/TD]
[TD="class: et2, width: 64"]7.2 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]1000[/TD]
[TD="class: et2, width: 64"]11.4 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]1250[/TD]
[TD="class: et2, width: 64"]16.2 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]1500[/TD]
[TD="class: et2, width: 64"]21.6 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]1750[/TD]
[TD="class: et2, width: 64"]27.6 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]2000[/TD]
[TD="class: et2, width: 64"]34.1 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]2250[/TD]
[TD="class: et2, width: 64"]41.1 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]2500[/TD]
[TD="class: et2, width: 64"]48.6 [/TD]
[/TR]
</tbody>[/TABLE]
and using the following equation
c2 = index(linest(y,x^{1,2},1)
c1 = index(linest(y,x^{1,2},1,2)
c0 = index(linest(y,x^{1,2},1,3) and these do calculate values as
c2 = 0.0000048, c1 = 0.008 and c0 = -1.25. But when I keep input variables in row wise(as shown below), I am not able to use these equations. Looking for a help.
[TABLE="width: 640"]
<colgroup><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"></colgroup><tbody>[TR]
[TD="class: et2, width: 64"]250.0 [/TD]
[TD="class: et2, width: 64"]500.0 [/TD]
[TD="class: et2, width: 64"]750.0 [/TD]
[TD="class: et2, width: 64"]1000.0 [/TD]
[TD="class: et2, width: 64"]1250.0 [/TD]
[TD="class: et2, width: 64"]1500.0 [/TD]
[TD="class: et2, width: 64"]1750.0 [/TD]
[TD="class: et2, width: 64"]2000.0 [/TD]
[TD="class: et2, width: 64"]2250.0 [/TD]
[TD="class: et2, width: 64"]2500.0 [/TD]
[/TR]
[TR]
[TD="class: et2, width: 64"]1.3 [/TD]
[TD="class: et2, width: 64"]3.8 [/TD]
[TD="class: et2, width: 64"]7.2 [/TD]
[TD="class: et2, width: 64"]11.4 [/TD]
[TD="class: et2, width: 64"]16.2 [/TD]
[TD="class: et2, width: 64"]21.6 [/TD]
[TD="class: et2, width: 64"]27.6 [/TD]
[TD="class: et2, width: 64"]34.1 [/TD]
[TD="class: et2, width: 64"]41.1 [/TD]
[TD="class: et2, width: 64"]48.6 [/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for any help someone may be able to give.
[TABLE="width: 97"]
<colgroup><col width="97"></colgroup><tbody>[TR]
[TD="class: et3, width: 97"] [/TD]
[/TR]
</tbody>[/TABLE]
I am using linest function to get coefficient of 2nd order polynomial {y = (c2*x^2)+(c1*x) + c0 } for the following variable,
[TABLE="width: 128"]
<colgroup><col width="64"><col width="64"></colgroup><tbody>[TR]
[TD="class: et1, width: 64"]250[/TD]
[TD="class: et2, width: 64"]1.3 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]500[/TD]
[TD="class: et2, width: 64"]3.8 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]750[/TD]
[TD="class: et2, width: 64"]7.2 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]1000[/TD]
[TD="class: et2, width: 64"]11.4 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]1250[/TD]
[TD="class: et2, width: 64"]16.2 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]1500[/TD]
[TD="class: et2, width: 64"]21.6 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]1750[/TD]
[TD="class: et2, width: 64"]27.6 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]2000[/TD]
[TD="class: et2, width: 64"]34.1 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]2250[/TD]
[TD="class: et2, width: 64"]41.1 [/TD]
[/TR]
[TR]
[TD="class: et1, width: 64"]2500[/TD]
[TD="class: et2, width: 64"]48.6 [/TD]
[/TR]
</tbody>[/TABLE]
and using the following equation
c2 = index(linest(y,x^{1,2},1)
c1 = index(linest(y,x^{1,2},1,2)
c0 = index(linest(y,x^{1,2},1,3) and these do calculate values as
c2 = 0.0000048, c1 = 0.008 and c0 = -1.25. But when I keep input variables in row wise(as shown below), I am not able to use these equations. Looking for a help.
[TABLE="width: 640"]
<colgroup><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"><col width="64"></colgroup><tbody>[TR]
[TD="class: et2, width: 64"]250.0 [/TD]
[TD="class: et2, width: 64"]500.0 [/TD]
[TD="class: et2, width: 64"]750.0 [/TD]
[TD="class: et2, width: 64"]1000.0 [/TD]
[TD="class: et2, width: 64"]1250.0 [/TD]
[TD="class: et2, width: 64"]1500.0 [/TD]
[TD="class: et2, width: 64"]1750.0 [/TD]
[TD="class: et2, width: 64"]2000.0 [/TD]
[TD="class: et2, width: 64"]2250.0 [/TD]
[TD="class: et2, width: 64"]2500.0 [/TD]
[/TR]
[TR]
[TD="class: et2, width: 64"]1.3 [/TD]
[TD="class: et2, width: 64"]3.8 [/TD]
[TD="class: et2, width: 64"]7.2 [/TD]
[TD="class: et2, width: 64"]11.4 [/TD]
[TD="class: et2, width: 64"]16.2 [/TD]
[TD="class: et2, width: 64"]21.6 [/TD]
[TD="class: et2, width: 64"]27.6 [/TD]
[TD="class: et2, width: 64"]34.1 [/TD]
[TD="class: et2, width: 64"]41.1 [/TD]
[TD="class: et2, width: 64"]48.6 [/TD]
[/TR]
</tbody>[/TABLE]
Thanks in advance for any help someone may be able to give.
[TABLE="width: 97"]
<colgroup><col width="97"></colgroup><tbody>[TR]
[TD="class: et3, width: 97"] [/TD]
[/TR]
</tbody>[/TABLE]