heye 发表于 2004-7-4 19:10:44

【讨论】如何自定义函数做非线性拟合

在主工具栏中analysis的non-linear curve fit对话框中自定义函数:
y=p1*(1+4p1^2*(x/p3)^2)/((1-(x/p3)^2)^2+4*p2^2*(x/p3)^2)

但编译出错:
Error, Variable "p1" not declared
Error, general compile error
Error, error(s) found in compiling function _nlsfFittingFunction
Error, Variable "p1" not declared
Error, general compile error
Error, error(s) found in compiling function _nlsfFittingFunction
不清楚是哪弄错了

bluegrass 发表于 2004-7-10 12:15:37

回复: 【讨论】如何自定义函数做非线性拟合

提示p1未定义,可能是大小写的问题, 默认的参数好象是大写的。

jhli 发表于 2006-2-10 15:09:51

页: [1]
查看完整版本: 【讨论】如何自定义函数做非线性拟合