发表于:2005/11/14 22:46:00
#0楼
问题1:
先定义一个一维折线表:
#fx3
{
0.1f,0.2f,0.3f,0.4f,0.5f
}
再进行插值计算:
afloat a,c;
a=0.35f;
c=fx(a,3);
进行插值计算后,折线表是否变成了
{0.f,0.2f,0.3f,0.35f,0.4f,0.5f}?
问题2:
先定义一个二维折线表
#fxy1
{
0f,0.05f,0.1f,0.15f,0.2f,0.25f,0.3f,0.35f,0.4f,0.45f,0.5f
0f,0.05f,0.1f,0.15f,0.2f,0.25f,0.3f,0.35f,0.4f,0.45f,0.5f
}
afloat x
x=fxy(_tag("t1001"),1);
假设_tag("t1001")的值为0.6f,那么经插值计算后,X的值是什么?
问题3:
hal(_tag("t1001"),0.9f,0.05f,0)对位号进行超高位t1001报警与andint(_tag("t1001").flag,5)==5对位号t1001判断是否上上限报警的区别?
另请把一维折线表和二维折线表和实物联系起来讲讲它们的具体用法?
谢谢!
先定义一个一维折线表:
#fx3
{
0.1f,0.2f,0.3f,0.4f,0.5f
}
再进行插值计算:
afloat a,c;
a=0.35f;
c=fx(a,3);
进行插值计算后,折线表是否变成了
{0.f,0.2f,0.3f,0.35f,0.4f,0.5f}?
问题2:
先定义一个二维折线表
#fxy1
{
0f,0.05f,0.1f,0.15f,0.2f,0.25f,0.3f,0.35f,0.4f,0.45f,0.5f
0f,0.05f,0.1f,0.15f,0.2f,0.25f,0.3f,0.35f,0.4f,0.45f,0.5f
}
afloat x
x=fxy(_tag("t1001"),1);
假设_tag("t1001")的值为0.6f,那么经插值计算后,X的值是什么?
问题3:
hal(_tag("t1001"),0.9f,0.05f,0)对位号进行超高位t1001报警与andint(_tag("t1001").flag,5)==5对位号t1001判断是否上上限报警的区别?
另请把一维折线表和二维折线表和实物联系起来讲讲它们的具体用法?
谢谢!