| Author |
Topic  |
|
|
cheolmin park
2 Posts |
Posted - 09/10/2020 : 09:33:51 AM
|
Origin Ver.originlab 2019 and Service Release (Select Help-->About Origin): Operating System: window 10 pro Hello. Dear friends. I fitted by origin C in user defined fitting. In the fit function, additionally, I want to extract real and imaginary value into worksheet coulomb; Do you know how to do it? ((( Importantly, the fit data is numerically merged of real and imaginary. So the y value cannot separated.))) ---------------------------------------------------------------------- void _nlsMycomplexFitFunction( // Fit Parameter(s): double a1, double a2, double a3, // Independent Variable(s): double x, // Dependent Variable(s): double& y) { double real; double imaginary; complex result=0; : :
real=result.m_re; //<---- this imaginary=result.m_im; //<-----this y=real+imaginary; // End of editable part } |
Edited by - cheolmin park on 09/10/2020 10:12:44 AM |
|
|
AmandaLu
439 Posts |
Posted - 09/11/2020 : 02:43:56 AM
|
Hi,
To fit a complex function, you will need to put real and imaginary values into two columns, and the outputs are also in two columns. Please refer to this tutorial:
https://www.originlab.com/doc/Tutorials/Fitting-ComplexFunc
Thanks, Amanda OriginLab Technical Service
|
 |
|
| |
Topic  |
|
|
|