Author |
Topic  |
|
cchun1999
Taiwan
5 Posts |
Posted - 07/06/2023 : 05:19:04 AM
|
Hello, I have some problems with HLN fitting. My formula as shown below (Labtalk script):
psi_deriv=real_polygamma(x,k) k=1 y=(A*1.23314709*10^-5)*(real_polygamma(0.5+1.64557041*10^(-16)/(x*L^2),1)-ln(1.64557041*10^(-16)/(x*L^2)))
However, when I try to evaluate, the caption says "x, y, A, L not used." And when I insist to keep fitting, the caption says "Fit did not converge, and reason unknown"
So, I want to know how to deal with this problem, thank you! |
Edited by - cchun1999 on 07/06/2023 05:47:56 AM |
|
YimingChen
1640 Posts |
Posted - 07/06/2023 : 10:12:37 AM
|
You only need the third line of LabTalk script as the equation, right?
James
|
 |
|
cchun1999
Taiwan
5 Posts |
Posted - 07/06/2023 : 10:18:09 AM
|
Yes!
My equation:
y=(A*1.23314709*10^-5)*(real_polygamma(0.5+1.64557041*10^(-16)/(x*L^2),1)-ln(1.64557041*10^(-16)/(x*L^2))) |
 |
|
YimingChen
1640 Posts |
Posted - 07/06/2023 : 10:23:58 AM
|
Then the equation should evaluate properly. Did you specify the independent vars, dependent vars, and parameters on the previous page?
 |
Edited by - YimingChen on 07/06/2023 10:25:34 AM |
 |
|
cchun1999
Taiwan
5 Posts |
Posted - 07/06/2023 : 12:01:10 PM
|
Yes, I set independent variables=x, dependent variables=y, and parameters=A, L on the previous page.
My Origin version is 9
|
Edited by - cchun1999 on 07/06/2023 12:06:29 PM |
 |
|
cchun1999
Taiwan
5 Posts |
Posted - 07/06/2023 : 12:31:33 PM
|
Hi, James
Thank you very much for your help. I found that the issue was with the version. When I used Origin 2019, this equation was executable.
Chun |
Edited by - cchun1999 on 07/06/2023 12:32:12 PM |
 |
|
|
Topic  |
|
|
|