24小时热门版块排行榜    

查看: 1036  |  回复: 6
当前主题已经存档。
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

xglegl

木虫 (正式写手)

[交流] 【求助】Origin 7.5 非线性拟合公式修改

//----------------------------------------------------------
//
void _nlsfuser2(
// Fit Parameter(s):
double P1, double P2, double A, double B,
// Independent Variable(s):
double x,
// Dependent Variable(s):
double& y,
// Partial Derivative(s):
double& dy_P1, double& dy_P2, double& dy_A, double& dy_B)
{
        // Beginning of editable part
        A=2*exp(2*P2/x)+10*exp(6*P2/x)+28*exp(12*P2/x)+60*exp(20*P2/x)+110*exp(30*P2/x)+182*exp(42*P2/x)+280*(56*P2/x);
        B=1+3*exp(2*P2/x)+5*exp(6*P2/x)+7*exp(12*P2/x)+9*exp(20*P2/x)+11*exp(30*P2/x)+13*exp(42*P2/x)+15*exp(56*P2/x);
        y=x*0.375*P1*P1*A/B;

C:\Users\Administrator\AppData\Roaming\OriginLab\Origin75E\User Files\OriginC\NLSF\_nlfuser2.fit(40) :Error, Function argument dy_P1 is not used inside the function body
C:\Users\Administrator\AppData\Roaming\OriginLab\Origin75E\User Files\OriginC\NLSF\_nlfuser2.fit(40) :Error, Function argument dy_P2 is not used inside the function body
C:\Users\Administrator\AppData\Roaming\OriginLab\Origin75E\User Files\OriginC\NLSF\_nlfuser2.fit(40) :Error, Function argument dy_A is not used inside the function body
C:\Users\Administrator\AppData\Roaming\OriginLab\Origin75E\User Files\OriginC\NLSF\_nlfuser2.fit(40) :Error, Function argument dy_B is not used inside the function body
C:\Users\Administrator\AppData\Roaming\OriginLab\Origin75E\User Files\OriginC\NLSF\_nlfuser2.fit(31) :Error, error(s) found in compiling function _nlsfuser2
这就是错误 那个 高手能指教我怎么改啊
        // End of editable part
}

[ Last edited by fegg7502 on 2009-12-7 at 22:58 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xglegl

木虫 (正式写手)

我已经发了原代码了啊
4楼2009-06-06 22:01:28
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 7 个回答

abbott

金虫 (著名写手)

不要用QQ问我东西


mingdong(金币+1,VIP+0):感谢交流! 6-7 11:12
你用gnuplot不就可以了么?
Chemistry[]==[]Chem[]is[]try!!!
2楼2009-06-06 15:26:02
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zhaohscas1976

银虫 (小有名气)


mingdong(金币+1,VIP+0):感谢交流! 6-7 11:12
1- origin 自带有代码调试器,你首先用它进行调试,排错。

2- 如果要获得别人的帮助,建议将你的自定义的函数源码发上来,而不仅仅是错误信息。
3楼2009-06-06 18:42:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

guomeiyan

★ ★ ★ ★ ★ ★ ★
xglegl(金币+5,VIP+0):谢谢了啊 6-8 14:53
zhaohscas1976(金币+2,VIP+0):发到了谁的邮箱,我的吗?我什么也没有收到啊? 6-9 16:11
修改好了,发到你邮箱里了
5楼2009-06-08 14:52:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 2027广东省杰青 +3 奶牛小黑 2026-08-15 9/450 2026-08-18 20:09 by 奶牛小黑
[基金申请] 朋友圈看到的 +4 wangzilk 2026-08-18 5/250 2026-08-18 19:25 by wangzilk
[基金申请] 欢迎发来filecode的Mz6后的代码验证其规律 +51 医学老男孩 2026-08-13 110/5500 2026-08-18 19:07 by icerianxia
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[基金申请] 时间戳变了,能看出什么问题? +8 基诺咪客 2026-08-17 11/550 2026-08-18 17:13 by 悠然熊猫
[教师之家] 两姐妹,一个辛辛苦苦30岁工作当大学教师,另一个23岁就工作当开车教练 +3 瞬息宇宙 2026-08-11 7/350 2026-08-18 16:42 by LNP@mRNA
[论文投稿] 投稿咨询 +4 wwm09 2026-08-17 6/300 2026-08-18 15:36 by wwm09
[基金申请] 时间戳又变了8-15 +14 archvillain 2026-08-15 26/1300 2026-08-18 13:37 by phantomgost
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[基金申请] 哪位老哥知道今年的国自然具体哪一天放榜? +13 Ldrop2023 2026-08-13 16/800 2026-08-18 12:25 by 淀粉搬运工
[基金申请] 快农历七夕节了,轻松一下,男人悄悄话,女施主请不要进来。 +4 Tide man 2026-08-14 5/250 2026-08-18 11:35 by Tide man
[基金申请] filecode=后面第一个是大写字母 +8 wangze12014 2026-08-14 10/500 2026-08-17 17:05 by xter9665
[基金申请] 今天系统多次维护,明天很可能放榜! +8 zju2000 2026-08-16 9/450 2026-08-17 12:20 by lmz0216
[基金申请] 咱们一起用铁证分析2026国家社科基金中标与否 +7 启萌科技 2026-08-12 26/1300 2026-08-16 12:35 by 启萌科技
[精细化工] 招聘 金属平磨液,抛光液研发工程师 +3 小天0311 2026-08-14 3/150 2026-08-16 07:31 by H9PLUS
[基金申请] 各位道友,我要去昆明玩几天,回来见。 +7 Tide man 2026-08-14 8/400 2026-08-15 01:11 by arzu_hma
[基金申请] 重要来源:本周末出结果 +10 瞬息宇宙 2026-08-12 10/500 2026-08-13 15:46 by likettle
[基金申请] 不应该看fileCode +7 且听虎啸 2026-08-12 9/450 2026-08-13 14:27 by flydreamws
[基金申请] Filecode 又变了,巨变 +3 WH3796 2026-08-12 4/200 2026-08-13 14:13 by 小木虫6752397
[基金申请] 结合人工智能,周易传统文化,filecode打分制来了,3分以上希望很大。 +3 Tide man 2026-08-12 4/200 2026-08-13 08:35 by ZJTJZ
信息提示
请填处理意见