[英]What is the easiest way of composing this polynomial expressions in Excel?
This is trivial in programming languages, but when I need to do something quick & dirty and to see whether I got the coefficients right, I usually go for Excel. 这在编程语言中是微不足道的,但是当我需要快速又肮脏地做一些事情,并查看系数是否正确时,我通常会选择Excel。
So, what have I got, 所以,我得到了什么
c1(i) c2(i) c3(i)
0,321323232 1 0
0,32132122 0 2
0,321214324 1 2
...
..
.
The polynomial expression is 多项式为
KT = SUM( AEA0 * c1(i) + J * c2(i) + PD * c3(i) )
i=1,37
One approach would be to make columns with AEA0
, J
, PD
(btw, these are constants) and then multiply & sum them with the coefficient columns. 一种方法是制作具有
AEA0
, J
, PD
列(顺便说一句,它们是常数),然后将它们与系数列相乘并求和。 I don't like this one because it adds a lot of extra stuff, and it messes up my copy pasting later (when I copy paste the coefficients to a text file). 我不喜欢这个,因为它增加了很多额外的东西,并且在以后将我的复制粘贴弄乱了(当我将系数复制粘贴到文本文件时)。
Second approach would be to manually form an expression clicking all the cells one by one, 第二种方法是手动形成一个表达式,一次单击所有单元格,
KT = AEA0 cell * A1 + J * B1 + PD * C1 + AEA0 * A2 + J * B2 + PD * C2 + ...
you get the point. 你明白了。 Is there a way to improve this approach in some way so it takes a range of
A1
to A37
? 是否有某种方法可以以某种方式改进此方法,因此需要
A1
到A37
的范围?
Is there some better approach to forming this kind of expressions? 有没有更好的方法来形成这种表达?
Put the value for AEA0 in Z1 . 将AEA0的值放在Z1中 。 Put the value for J in Z2 .
将J的值放在Z2中 。 put the value for PD in Z3.
将PD的值放在Z3中。
Then you can use: 然后,您可以使用:
=SUM(A1:A37)*Z1+SUM(B1:B37)*Z2+SUM(C1:C37)*Z3
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.