24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1428  |  回复: 1

wxycquser

银虫 (小有名气)

[求助] 应用origin进行非线性拟合自定义函数后进行编译时出现了错误,请教高手怎么解决?

#pragma warning(error : 15618)#include #include #include #include // Add your special include files here.// For example, if you want to fit with functions from the NAG library, // add the header file for the NAG functions here.// Add code here for other Origin C functions that you want to define in this file,// and access in your fitting function.// You can access C functions defined in other files, if those files are loaded and compiled // in your workspace, and the functions have been prototyped in a header file that you have// included above. // You can access NLSF object methods and properties directly in your function code.// You should follow C-language syntax in defining your function. // For instance, if your parameter name is P1, you cannot use p1 in your function code. // When using fractions, remember that integer division such as 1/2 is equal to 0, and not 0.5// Use 0.5 or 1/2.0 to get the correct value.// For more information and examples, please refer to the "User-Defined Fitting Function" // section of the Origin Help file.//----------------------------------------------------------// void _nlsfuser1(// Fit Parameter(s):double P1, double P2, double P3, double P4, double P5, double P6,// Independent Variable(s):double A, double B, double C,// Dependent Variable(s):double& y){ // Beginning of editable part y=135*(exp(P1*A/1000.0+P2))*((B/10.0)^(P3*A/1000.0+P4))*(P6*(C/0.4)^P5-(P6-1)*C/0.4); // End of editable part}
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wxycquser

银虫 (小有名气)

#pragma warning(error : 15618)
#include #include
#include #include
// Add your special include files here.
// For example, if you want to fit with functions from the NAG library,
// add the header file for the NAG functions here.
// Add code here for other Origin C functions that you want to define in this file,
// and access in your fitting function.
// You can access C functions defined in other files, if those files are loaded and compiled
// in your workspace, and the functions have been prototyped in a header file that you have
// included above.
// You can access NLSF object methods and properties directly in your function code.// You should follow C-language syntax in defining your function.
// For instance, if your parameter name is P1, you cannot use p1 in your function code.
// When using fractions, remember that integer division such as 1/2 is equal to 0, and not 0.5
// Use 0.5 or 1/2.0 to get the correct value.// For more information and examples, please refer to the "User-Defined Fitting Function" // section of the Origin Help file.
//----------------------------------------------------------
// void _nlsfuser1(
// Fit Parameter(s):double P1, double P2, double P3, double P4, double P5, double P6,
// Independent Variable(s):double A, double B, double C,
// Dependent Variable(s):double& y){
// Beginning of editable part y=135*(exp(P1*A/1000.0+P2))*((B/10.0)^(P3*A/1000.0+P4))*(P6*(C/0.4)^P5-(P6-1)*C/0.4);
// End of editable part}
2楼2013-01-08 13:06:10
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 wxycquser 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 085600材料与化工,求调剂 +12 won_qii 2026-04-07 12/600 2026-04-12 17:02 by lhj2009
[考研] 312求调剂 +6 李鸿飞飞 2026-04-06 6/300 2026-04-12 00:34 by 蓝云思雨
[考研] 267求调剂 +8 再忙也要吃饭啊 2026-04-09 8/400 2026-04-11 21:42 by cfdbai
[考研] 070300化学279求调剂 +19 哈哈哈^_^ 2026-04-08 20/1000 2026-04-11 20:43 by stoner78
[考研] 电子信息279求调剂,有书读就行 +8 wwwooden 2026-04-08 11/550 2026-04-11 20:22 by cq2548
[考研] 352 求调剂 +6 yzion 2026-04-11 8/400 2026-04-11 16:24 by 明月此时有
[考研] 求调剂 +10 璃茉一定上岸 2026-04-10 10/500 2026-04-11 13:31 by 1005715100
[考研] 263能源动力专硕求调剂 +4 加大号饭盒袋 2026-04-10 4/200 2026-04-10 20:52 by gong120082
[考研] 本科西工大 324求调剂 +4 wysyjs25 2026-04-10 4/200 2026-04-10 20:00 by 来看流星雨10
[考研] 一志愿京区985,085401电子信息,本科电子信息 +3 阳光开朗的男孩 2026-04-10 3/150 2026-04-10 16:29 by sophia_93
[考研] 一志愿华东师范生物学326分,求调剂 +8 刘墨墨 2026-04-09 8/400 2026-04-10 12:00 by pengliang8036
[考研] 材料专硕322 +14 哈哈哈吼吼吼哈 2026-04-05 14/700 2026-04-09 13:25 by 5268321
[考研] 求调剂 +8 吃口冰激凌 2026-04-07 8/400 2026-04-09 08:03 by 5268321
[考研] 327求调剂 +10 Xxjc1107. 2026-04-06 11/550 2026-04-09 01:21 by lature00
[考研] 一志愿985初试354分生物调剂 +3 031001 2026-04-06 3/150 2026-04-09 00:30 by Evan_Liu
[考研] 机械专硕273请求调剂 +6 庚申壬申 2026-04-07 6/300 2026-04-08 22:41 by bljnqdcc
[考研] 270求调剂 +3 031127 2026-04-06 4/200 2026-04-08 21:00 by 逆水乘风
[考研] 327求调剂 +12 Xxjc1107. 2026-04-06 12/600 2026-04-08 16:46 by luoyongfeng
[考研] 285求调剂 +5 mapmath 2026-04-06 6/300 2026-04-06 17:18 by 蓝云思雨
[考研] 求调剂到材料 +5 程9915 2026-04-06 5/250 2026-04-06 15:21 by yulian1987
信息提示
请填处理意见